[−][src]Struct moore_common::grind::Lookahead
Implementations
impl<T> Lookahead<T> where
T: Grinder,
[src]
T: Grinder,
pub fn new(inner: T) -> Lookahead<T>
[src]
pub fn lookahead(&mut self, offset: usize) -> &T::Item
[src]
pub fn undo(&mut self, item: T::Item)
[src]
Trait Implementations
impl<T> From<T> for Lookahead<T> where
T: Grinder,
[src]
T: Grinder,
impl<T> Grinder for Lookahead<T> where
T: Grinder,
[src]
T: Grinder,
type Item = T::Item
type Error = T::Error
pub fn emit(&mut self, err: Self::Error)
[src]
pub fn next(&mut self) -> Self::Item
[src]
pub fn vent<F, E>(self, f: F) -> Vent<Self, F, E> where
Self: Sized,
F: Fn(E),
[src]
Self: Sized,
F: Fn(E),
pub fn unwrap(self) -> Unwrap<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E> where
Self: Sized,
F: Fn(E) -> Self::Error,
[src]
Self: Sized,
F: Fn(E) -> Self::Error,
pub fn peekable(self) -> Peekable<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn lookaheadable(self) -> Lookahead<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn filter<F>(self, f: F) -> Filter<Self, F> where
Self: Sized,
F: Fn(&<Self::Item as Chisel>::Value) -> bool,
[src]
Self: Sized,
F: Fn(&<Self::Item as Chisel>::Value) -> bool,
Auto Trait Implementations
impl<T> RefUnwindSafe for Lookahead<T> where
T: RefUnwindSafe,
<T as Grinder>::Item: RefUnwindSafe,
[src]
T: RefUnwindSafe,
<T as Grinder>::Item: RefUnwindSafe,
impl<T> Send for Lookahead<T> where
T: Send,
<T as Grinder>::Item: Send,
[src]
T: Send,
<T as Grinder>::Item: Send,
impl<T> Sync for Lookahead<T> where
T: Sync,
<T as Grinder>::Item: Sync,
[src]
T: Sync,
<T as Grinder>::Item: Sync,
impl<T> Unpin for Lookahead<T> where
T: Unpin,
<T as Grinder>::Item: Unpin,
[src]
T: Unpin,
<T as Grinder>::Item: Unpin,
impl<T> UnwindSafe for Lookahead<T> where
T: UnwindSafe,
<T as Grinder>::Item: UnwindSafe,
[src]
T: UnwindSafe,
<T as Grinder>::Item: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,