pub enum Either<A, B, C = Invalid, D = Invalid, E = Invalid, F = Invalid, G = Invalid> {
First(A),
Second(B),
Third(C),
Fourth(D),
Fifth(E),
Sixth(F),
Seventh(G),
}Expand description
Parse an item in a given list. If multiple types can be parsed, the first one is chosen.
Variants§
Implementations§
Trait Implementations§
Source§impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone> Clone for Either<A, B, C, D, E, F, G>
impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone> Clone for Either<A, B, C, D, E, F, G>
Source§impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug> Debug for Either<A, B, C, D, E, F, G>
impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug> Debug for Either<A, B, C, D, E, F, G>
Source§impl<A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash> Hash for Either<A, B, C, D, E, F, G>
impl<A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash> Hash for Either<A, B, C, D, E, F, G>
Source§impl<A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord> Ord for Either<A, B, C, D, E, F, G>
impl<A: Ord, B: Ord, C: Ord, D: Ord, E: Ord, F: Ord, G: Ord> Ord for Either<A, B, C, D, E, F, G>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<A: ParseMore, B: ParseMore, C: ParseMore, D: ParseMore, E: ParseMore, F: ParseMore, G: ParseMore> ParseMore for Either<A, B, C, D, E, F, G>
impl<A: ParseMore, B: ParseMore, C: ParseMore, D: ParseMore, E: ParseMore, F: ParseMore, G: ParseMore> ParseMore for Either<A, B, C, D, E, F, G>
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq> PartialEq for Either<A, B, C, D, E, F, G>
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq> PartialEq for Either<A, B, C, D, E, F, G>
Source§impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd, F: PartialOrd, G: PartialOrd> PartialOrd for Either<A, B, C, D, E, F, G>
impl<A: PartialOrd, B: PartialOrd, C: PartialOrd, D: PartialOrd, E: PartialOrd, F: PartialOrd, G: PartialOrd> PartialOrd for Either<A, B, C, D, E, F, G>
impl<A: Copy, B: Copy, C: Copy, D: Copy, E: Copy, F: Copy, G: Copy> Copy for Either<A, B, C, D, E, F, G>
impl<A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq> Eq for Either<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> StructuralPartialEq for Either<A, B, C, D, E, F, G>
Auto Trait Implementations§
impl<A, B, C, D, E, F, G> Freeze for Either<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> RefUnwindSafe for Either<A, B, C, D, E, F, G>where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<A, B, C, D, E, F, G> Send for Either<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> Sync for Either<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> Unpin for Either<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> UnwindSafe for Either<A, B, C, D, E, F, G>where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
G: 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