pub struct SnapId(/* private fields */);Expand description
A unique identifier for a snap target.
Kept as a distinct type from UnitId so that the two cannot be
accidentally mixed at call sites. Invariant: the wrapped value is always
strictly positive.
Implementations§
Trait Implementations§
impl Copy for SnapId
impl Eq for SnapId
Source§impl Ord for SnapId
impl Ord for SnapId
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
Source§impl PartialOrd for SnapId
impl PartialOrd for SnapId
impl StructuralPartialEq for SnapId
Auto Trait Implementations§
impl Freeze for SnapId
impl RefUnwindSafe for SnapId
impl Send for SnapId
impl Sync for SnapId
impl Unpin for SnapId
impl UnsafeUnpin for SnapId
impl UnwindSafe for SnapId
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