pub enum Either<T, U> {
Left(T),
Right(U),
}
Expand description
Sum type of left and right case.
Variants
Left(T)
Left case.
Right(U)
Right case.
Trait Implementations
Auto Trait Implementations
impl<T, U> RefUnwindSafe for Either<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> UnwindSafe for Either<T, U> where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more