pub struct ConstraintHandle { /* private fields */ }Expand description
A model-bound handle to an algebraic constraint.
Constraint declaration macros return this type.
Use Self::id when a backend-facing raw numeric ID
is explicitly required.
Implementations§
Trait Implementations§
Source§impl Clone for ConstraintHandle
impl Clone for ConstraintHandle
impl Copy for ConstraintHandle
Source§impl Debug for ConstraintHandle
impl Debug for ConstraintHandle
impl Eq for ConstraintHandle
Source§impl From<ConstraintHandle> for ConstraintId
impl From<ConstraintHandle> for ConstraintId
Source§fn from(value: ConstraintHandle) -> Self
fn from(value: ConstraintHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for ConstraintHandle
impl Hash for ConstraintHandle
Source§impl PartialEq for ConstraintHandle
impl PartialEq for ConstraintHandle
Source§impl PartialEq<ConstraintHandle> for ConstraintId
impl PartialEq<ConstraintHandle> for ConstraintId
Source§impl PartialEq<ConstraintId> for ConstraintHandle
impl PartialEq<ConstraintId> for ConstraintHandle
impl StructuralPartialEq for ConstraintHandle
Auto Trait Implementations§
impl Freeze for ConstraintHandle
impl RefUnwindSafe for ConstraintHandle
impl Send for ConstraintHandle
impl Sync for ConstraintHandle
impl Unpin for ConstraintHandle
impl UnsafeUnpin for ConstraintHandle
impl UnwindSafe for ConstraintHandle
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
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