pub struct TagNamed<T> { /* private fields */ }
Expand description
A unique tag, ‘named’ by its type parameter.
Note that this type is safe to construct, but it is not safe to tag a slice or index with it. The user is responsible for ensuring the uniqueness of the type parameter, which is necessary for the soundness of wrapping an index or slice.
Implementations§
Trait Implementations§
impl<T> Copy for TagNamed<T>
impl<T> Tag for TagNamed<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TagNamed<T>where
T: RefUnwindSafe,
impl<T> Send for TagNamed<T>where
T: Send,
impl<T> Sync for TagNamed<T>where
T: Sync,
impl<T> Unpin for TagNamed<T>where
T: Unpin,
impl<T> UnwindSafe for TagNamed<T>where
T: 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