pub enum Tag {
None,
First,
Second,
Both,
}
Expand description
Tag
is a four-state Enum
that can be embedded in a pointer as the two least
significant bits of the pointer value.
Variants§
None
None tagged.
First
The first bit is tagged.
Second
The second bit is tagged.
Both
Both bits are tagged.
Trait Implementations§
Source§impl Ord for Tag
impl Ord for Tag
Source§impl PartialOrd for Tag
impl PartialOrd for Tag
impl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq 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 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