[][src]Enum peg::RuleResult

pub enum RuleResult<T> {
    Matched(usize, T),
    Failed,
}

The result type used internally in the parser.

You'll only need this if implementing the Parse* traits for a custom input type. The public API of a parser adapts errors to std::result::Result.

Variants

Matched(usize, T)
Failed

Trait Implementations

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

Auto Trait Implementations

impl<T> RefUnwindSafe for RuleResult<T> where
    T: RefUnwindSafe

impl<T> Send for RuleResult<T> where
    T: Send

impl<T> Sync for RuleResult<T> where
    T: Sync

impl<T> Unpin for RuleResult<T> where
    T: Unpin

impl<T> UnwindSafe for RuleResult<T> where
    T: 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.