pub enum Either<L, R> {
Left(L),
Right(R),
}Variants§
Implementations§
Source§impl<L, R> Either<L, R>
impl<L, R> Either<L, R>
pub fn __VERUS_SPEC_left(self) -> Option<L>
pub fn __VERUS_SPEC_right(self) -> Option<R>
pub fn __VERUS_SPEC_is_left(&self) -> bool
pub fn __VERUS_SPEC_is_right(&self) -> bool
Trait Implementations§
impl<L: Copy, R: Copy> Copy for Either<L, R>
impl<L: Eq, R: Eq> Eq for Either<L, R>
impl<L, R> StructuralPartialEq for Either<L, R>
Auto Trait Implementations§
impl<L, R> Freeze for Either<L, R>
impl<L, R> RefUnwindSafe for Either<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Either<L, R>
impl<L, R> Sync for Either<L, R>
impl<L, R> Unpin for Either<L, R>
impl<L, R> UnwindSafe for Either<L, R>where
L: UnwindSafe,
R: 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