Enum lc3_ensemble::parse::simple::Either
source · pub enum Either<L, R> {
Left(L),
Right(R),
}Expand description
Either one component or another.
This is not meant to be used as a general purpose Either type. It is only meant to be used for parsing.
Variants§
Trait Implementations§
source§impl<L: TokenParse, R: TokenParse> TokenParse for Either<L, R>
impl<L: TokenParse, R: TokenParse> TokenParse for Either<L, R>
§type Intermediate = Either<<L as TokenParse>::Intermediate, <R as TokenParse>::Intermediate>
type Intermediate = Either<<L as TokenParse>::Intermediate, <R as TokenParse>::Intermediate>
An intermediate to hold the match before it is converted to the actual component.
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