pub enum Either2<A, B> {
First(A),
Second(B),
}Expand description
A tagged union for representing a simple two-case discriminated union.
Variants§
Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Either2<A, B>
impl<A, B> RefUnwindSafe for Either2<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either2<A, B>
impl<A, B> Sync for Either2<A, B>
impl<A, B> Unpin for Either2<A, B>
impl<A, B> UnsafeUnpin for Either2<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Either2<A, B>where
A: UnwindSafe,
B: 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