pub struct Drawn {
pub key: String,
pub view: Rc<PartView>,
}Expand description
A placed part as drawn where it is placed: its own part’s view, without its sketches, which are what it was drawn with. Its key is what the view shows, hashed: a viewer keeps a view by it, so that it is sent once however often the part placing it is drawn, and parts drawn alike — every screw of a size — share it.
Fields§
§key: String§view: Rc<PartView>Trait Implementations§
Source§impl HasElements<Drawn> for Drawn
impl HasElements<Drawn> for Drawn
Source§const SINGLETON: Option<&'static str> = None
const SINGLETON: Option<&'static str> = None
The name of the one target of this type a part has, if it has only
one — the topology, say: a reference into it is saved as the
element’s name alone.
Source§fn undefined() -> Option<&'static Self>
fn undefined() -> Option<&'static Self>
What the target reads as where no step made it, if it reads as
anything then — the datums every part starts with. None by default:
reading it fails.
Source§fn names_target(name: &str) -> bool
fn names_target(name: &str) -> bool
Whether the target named
name could be one of this type: what
tells a pick of an element of it from one of a target of another
type with elements of the same kind (ElementReference::from_picked).
The singleton’s name, for a singleton; any name, by default.Source§impl Target for Drawn
Each placed part’s own; kept between processes, its view as views are
kept (geop_core_editor::view::kept), so that a placed part reopened
is drawn without meshing it again.
impl Target for Drawn
Each placed part’s own; kept between processes, its view as views are
kept (geop_core_editor::view::kept), so that a placed part reopened
is drawn without meshing it again.
Source§const KEEPER: Option<Keeper<Self>>
const KEEPER: Option<Keeper<Self>>
How its values are written to be kept between processes (see
crate::kept): none for a target made again in every process —
one that is cheap to make, or holds what cannot be written.Source§const CHAIN: bool = false
const CHAIN: bool = false
Whether several steps may produce a target of this type, each from
what the steps before left (see
crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.Auto Trait Implementations§
impl !RefUnwindSafe for Drawn
impl !Send for Drawn
impl !Sync for Drawn
impl !UnwindSafe for Drawn
impl Freeze for Drawn
impl Unpin for Drawn
impl UnsafeUnpin for Drawn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more