pub enum MaybeTag<T> {
Tag(String),
NotTag(T),
}
Expand description
A tagged value with an optional tag.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MaybeTag<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaybeTag<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeTag<T>where
T: Send,
impl<T> Sync for MaybeTag<T>where
T: Sync,
impl<T> Unpin for MaybeTag<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeTag<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