pub enum OxiEither<A, B> {
Left(A),
Right(B),
}Expand description
A Rust-level sum type representing one of two values. Used by iterator utilities and functional combinators in this module.
Variants§
Left(A)
The left variant (analogous to Either.inl).
Right(B)
The right variant (analogous to Either.inr).
Implementations§
Trait Implementations§
impl<A: Eq, B: Eq> Eq for OxiEither<A, B>
impl<A, B> StructuralPartialEq for OxiEither<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for OxiEither<A, B>
impl<A, B> RefUnwindSafe for OxiEither<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for OxiEither<A, B>
impl<A, B> Sync for OxiEither<A, B>
impl<A, B> Unpin for OxiEither<A, B>
impl<A, B> UnsafeUnpin for OxiEither<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for OxiEither<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