pub struct Tag { /* private fields */ }
Expand description
A type tag for a value.
Tags are additional hints that a stream may use to interpret a value differently, or to avoid some unnecessary work.
The contents of a tag aren’t considered public, only equality between two tag identifiers.
Implementations§
Trait Implementations§
impl Eq for Tag
impl StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin 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