Enum commands::parser::ParseError [] [src]

pub enum ParseError<'text> {
    NoMatches(Token<'text>, Vec<Rc<Node>>),
    AmbiguousMatch(Token<'text>, Vec<Rc<Node>>),
}

Errors that calling parse on the Parser can raise.

Variants

NoMatches

There were no matches for the token.

AmbiguousMatch

There was more than 1 possible match for the token.

Trait Implementations

impl<'text> Debug for ParseError<'text>

fn fmt(&self, f: &mut Formatter) -> Result

impl<'text> Error for ParseError<'text>

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl<'text> Display for ParseError<'text>

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl<'text> Clone for ParseError<'text>

fn clone(&self) -> ParseError<'text>

1.0.0fn clone_from(&mut self, source: &Self)