pub struct SketchConstraintAction {
pub symbol: String,
pub label: String,
pub dimensional: bool,
}Expand description
One applicable-constraint palette entry: the glyph passed back to
EngineState::sketch_add_constraint plus a human tooltip and a dimensional
tag (whether it opens a value the solver seeds from the current measurement).
Fields§
§symbol: StringThe constraint glyph (e.g. "━", "⟂", "R") — the argument to
EngineState::sketch_add_constraint.
label: StringA human tooltip label (e.g. "Horizontal", "Radius").
dimensional: boolWhether this is a dimensional constraint (its value is seeded from the current measurement; S5 makes it editable).
Trait Implementations§
Source§impl Clone for SketchConstraintAction
impl Clone for SketchConstraintAction
Source§fn clone(&self) -> SketchConstraintAction
fn clone(&self) -> SketchConstraintAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SketchConstraintAction
impl Debug for SketchConstraintAction
Source§impl PartialEq for SketchConstraintAction
impl PartialEq for SketchConstraintAction
impl StructuralPartialEq for SketchConstraintAction
Auto Trait Implementations§
impl Freeze for SketchConstraintAction
impl RefUnwindSafe for SketchConstraintAction
impl Send for SketchConstraintAction
impl Sync for SketchConstraintAction
impl Unpin for SketchConstraintAction
impl UnsafeUnpin for SketchConstraintAction
impl UnwindSafe for SketchConstraintAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more