pub struct Named<T, Name> { /* private fields */ }Expand description
An owned value which has name Name. This type is unique to this Named, so it can be used to enforce compile-time coherency
Implementations§
Trait Implementations§
Source§impl<T, Name> Ord for Named<T, Name>where
T: Ord,
impl<T, Name> Ord for Named<T, Name>where
T: Ord,
1.21.0 · 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<T, Name> PartialOrd for Named<T, Name>where
T: PartialOrd,
impl<T, Name> PartialOrd for Named<T, Name>where
T: PartialOrd,
impl<T, Name> Eq for Named<T, Name>where
T: Eq,
Auto Trait Implementations§
impl<T, Name> Freeze for Named<T, Name>where
T: Freeze,
impl<T, Name> RefUnwindSafe for Named<T, Name>where
T: RefUnwindSafe,
Name: RefUnwindSafe,
impl<T, Name> Send for Named<T, Name>
impl<T, Name> Sync for Named<T, Name>
impl<T, Name> Unpin for Named<T, Name>
impl<T, Name> UnsafeUnpin for Named<T, Name>where
T: UnsafeUnpin,
impl<T, Name> UnwindSafe for Named<T, Name>where
T: UnwindSafe,
Name: UnwindSafe,
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