pub enum FrontBack<A, B> {
Front(A),
Back(B),
}Expand description
This is the TokenGroup for BookEnds. We need to differentiate between features at the front of a word and features at the back of a word. Otherwise suffixes and prefixes would be identical.
Variants§
Front(A)
the TokenGroup from running A on the front of the input
Back(B)
the TokenGroup from running B on the Back of the input
Trait Implementations§
Source§impl<A, B, Ax, Bx> FeatureFrom<FrontBack<A, B>> for FrontBack<Ax, Bx>where
Ax: FeatureFrom<A>,
Bx: FeatureFrom<B>,
impl<A, B, Ax, Bx> FeatureFrom<FrontBack<A, B>> for FrontBack<Ax, Bx>where
Ax: FeatureFrom<A>,
Bx: FeatureFrom<B>,
Source§impl<A, B, C> FeatureFrom<FrontBack<A, B>> for Merged<C>where
C: FeatureFrom<A> + FeatureFrom<B>,
impl<A, B, C> FeatureFrom<FrontBack<A, B>> for Merged<C>where
C: FeatureFrom<A> + FeatureFrom<B>,
Source§impl<A, B, Ax, Bx> FeatureFrom<FrontBack<A, B>> for Result<Ax, Bx>where
Ax: FeatureFrom<A>,
Bx: FeatureFrom<B>,
impl<A, B, Ax, Bx> FeatureFrom<FrontBack<A, B>> for Result<Ax, Bx>where
Ax: FeatureFrom<A>,
Bx: FeatureFrom<B>,
Source§impl<A: Ord, B: Ord> Ord for FrontBack<A, B>
impl<A: Ord, B: Ord> Ord for FrontBack<A, B>
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: PartialOrd, B: PartialOrd> PartialOrd for FrontBack<A, B>
impl<A: PartialOrd, B: PartialOrd> PartialOrd for FrontBack<A, B>
impl<A: Copy, B: Copy> Copy for FrontBack<A, B>
impl<A: Eq, B: Eq> Eq for FrontBack<A, B>
impl<A, B> StructuralPartialEq for FrontBack<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for FrontBack<A, B>
impl<A, B> RefUnwindSafe for FrontBack<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for FrontBack<A, B>
impl<A, B> Sync for FrontBack<A, B>
impl<A, B> Unpin for FrontBack<A, B>
impl<A, B> UnwindSafe for FrontBack<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