pub struct Tag(/* private fields */);Expand description
A stack-allocated bytes buffer.
Use Self::as_ref to get the bytes as a &[u8] and Self::as_mut to get the bytes as a &mut [u8].
Comparing Tag is a constant-time operation.
Implementations§
Trait Implementations§
impl Eq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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