Enum cheddar::ParseResult[][src]

pub enum ParseResult<T> {
    Ok(T),
    Err(ParseError),
    Incomplete(Needed),
}

Parse result. It can either be parsed, incomplete or errored.

Variants

The source was successfully parsed.

The parser failed with a ParseError.

More data is required to go on.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for ParseResult<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

impl<T> Eq for ParseResult<T> where
    T: Eq
[src]

impl<T> PartialEq<ParseResult<T>> for ParseResult<T> where
    T: PartialEq<T>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

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

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