pub struct SketchConstraint {
pub raw: Map<String, Value>,
}Expand description
A sketch constraint. The solver mutates constraints with a large amount of
bookkeeping (status, error, previousPointValues, _previousSolveValue,
the _distance* slide state, …) that must persist between solves EXACTLY, so
the whole object is kept as a transparent map rather than a lossy typed struct.
Typed accessors (ctype, points) read the
fields this slice needs.
Fields§
§raw: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for SketchConstraint
impl Clone for SketchConstraint
Source§fn clone(&self) -> SketchConstraint
fn clone(&self) -> SketchConstraint
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 SketchConstraint
impl Debug for SketchConstraint
Source§impl<'de> Deserialize<'de> for SketchConstraint
impl<'de> Deserialize<'de> for SketchConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SketchConstraint
impl PartialEq for SketchConstraint
Source§impl Serialize for SketchConstraint
impl Serialize for SketchConstraint
impl StructuralPartialEq for SketchConstraint
Auto Trait Implementations§
impl Freeze for SketchConstraint
impl RefUnwindSafe for SketchConstraint
impl Send for SketchConstraint
impl Sync for SketchConstraint
impl Unpin for SketchConstraint
impl UnsafeUnpin for SketchConstraint
impl UnwindSafe for SketchConstraint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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