Enum som_parser_core::combinators::Either
source · pub enum Either<A, B> {
Left(A),
Right(B),
}
Expand description
Represents a value of either type A (Left) or type B (Right).
Variants§
Trait Implementations§
source§impl<A: PartialEq, B: PartialEq> PartialEq for Either<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Either<A, B>
impl<A: Copy, B: Copy> Copy for Either<A, B>
impl<A: Eq, B: Eq> Eq for Either<A, B>
impl<A, B> StructuralPartialEq for Either<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Either<A, B>
impl<A, B> RefUnwindSafe for Either<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either<A, B>
impl<A, B> Sync for Either<A, B>
impl<A, B> Unpin for Either<A, B>
impl<A, B> UnwindSafe for Either<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