pub enum Either<T, U> {
A(T),
B(U),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T, U> Freeze for Either<T, U>
impl<T, U> RefUnwindSafe for Either<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Either<T, U>
impl<T, U> Sync for Either<T, U>
impl<T, U> Unpin for Either<T, U>
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