Struct yarpl::Peek[][src]

pub struct Peek<F: Fn(char) -> bool>(_);

Consumes a single token built from a char predicate.

Implementations

impl<F: Fn(char) -> bool> Peek<F>[src]

pub fn new(function: F) -> Self[src]

Trait Implementations

impl<F: Clone + Fn(char) -> bool> Clone for Peek<F>[src]

impl<F: Debug + Fn(char) -> bool> Debug for Peek<F>[src]

impl<F: Fn(char) -> bool> Feed for Peek<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for Peek<F> where
    F: RefUnwindSafe

impl<F> Send for Peek<F> where
    F: Send

impl<F> Sync for Peek<F> where
    F: Sync

impl<F> Unpin for Peek<F> where
    F: Unpin

impl<F> UnwindSafe for Peek<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.