pub enum Variant<T, S> {
Left(T),
Right(S),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T, S> Freeze for Variant<T, S>
impl<T, S> RefUnwindSafe for Variant<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Variant<T, S>
impl<T, S> Sync for Variant<T, S>
impl<T, S> Unpin for Variant<T, S>
impl<T, S> UnwindSafe for Variant<T, S>where
T: UnwindSafe,
S: 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