pub struct Reference {
pub label: String,
pub roles: Vec<Role>,
pub scope: Option<EntityRef>,
pub value: Vec<Picked>,
pub multiple: bool,
pub armed: bool,
}Expand description
Entities of the part a step builds on, picked in the viewport: any
entity that can fill one of roles — and, with a scope, is part of it,
like a line of one sketch. One entity, or — multiple — any number, a
pick adding or taking out one.
The editor does all of the editing (see super::StepEditor): arming it
for picks, removing and clearing entities, saying what each held is.
An operation only ever gets what it holds now, as
super::Value::Entities.
Fields§
§label: String§roles: Vec<Role>§scope: Option<EntityRef>§value: Vec<Picked>§multiple: bool§armed: boolWhether a click in the viewport picks for it now.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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