pub struct Either<E, A> { /* private fields */ }Expand description
A simple Either monad with error type E.
Implementations§
Trait Implementations§
impl<E: Eq, A: Eq> Eq for Either<E, A>
impl<E, A> StructuralPartialEq for Either<E, A>
Auto Trait Implementations§
impl<E, A> Freeze for Either<E, A>
impl<E, A> RefUnwindSafe for Either<E, A>where
A: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, A> Send for Either<E, A>
impl<E, A> Sync for Either<E, A>
impl<E, A> Unpin for Either<E, A>
impl<E, A> UnsafeUnpin for Either<E, A>where
A: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, A> UnwindSafe for Either<E, A>where
A: UnwindSafe,
E: 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