pub struct AnyConstraintId { /* private fields */ }Expand description
A constraint id of any kind, for listing and removing constraints.
Implementations§
Source§impl AnyConstraintId
impl AnyConstraintId
Sourcepub fn kind(self) -> ConstraintType
pub fn kind(self) -> ConstraintType
The kind of constraint the id names.
Sourcepub fn downcast<K: ConstraintKind>(self) -> Option<ConstraintId<K>>
pub fn downcast<K: ConstraintKind>(self) -> Option<ConstraintId<K>>
The typed id, if the constraint is of kind K.
Trait Implementations§
Source§impl Clone for AnyConstraintId
impl Clone for AnyConstraintId
impl Copy for AnyConstraintId
Source§impl Debug for AnyConstraintId
impl Debug for AnyConstraintId
impl Eq for AnyConstraintId
Source§impl<K: ConstraintKind> From<ConstraintId<K>> for AnyConstraintId
impl<K: ConstraintKind> From<ConstraintId<K>> for AnyConstraintId
Source§fn from(id: ConstraintId<K>) -> Self
fn from(id: ConstraintId<K>) -> Self
Converts to this type from the input type.
Source§impl Hash for AnyConstraintId
impl Hash for AnyConstraintId
Source§impl Ord for AnyConstraintId
impl Ord for AnyConstraintId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AnyConstraintId
impl PartialEq for AnyConstraintId
Source§impl PartialOrd for AnyConstraintId
impl PartialOrd for AnyConstraintId
impl StructuralPartialEq for AnyConstraintId
Auto Trait Implementations§
impl Freeze for AnyConstraintId
impl RefUnwindSafe for AnyConstraintId
impl Send for AnyConstraintId
impl Sync for AnyConstraintId
impl Unpin for AnyConstraintId
impl UnsafeUnpin for AnyConstraintId
impl UnwindSafe for AnyConstraintId
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