pub enum Either<T, U> {
Left(T),
Right(U),
}
Expand description
Sum type of left and right case.
Variants§
Trait Implementations§
impl<T: Copy, U: Copy> Copy for Either<T, U>
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for Either<T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<T, U> Send for Either<T, U>where T: Send, U: Send,
impl<T, U> Sync for Either<T, U>where T: Sync, U: Sync,
impl<T, U> Unpin for Either<T, U>where T: Unpin, U: Unpin,
impl<T, U> UnwindSafe for Either<T, U>where T: UnwindSafe, U: 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