Enum meval::shunting_yard::RPNError [] [src]

pub enum RPNError {
    MismatchedLParen(usize),
    MismatchedRParen(usize),
    UnexpectedComma(usize),
    NotEnoughOperands(usize),
    TooManyOperands,
}

An error produced by the shunting-yard algorightm.

Variants

MismatchedLParen(usize)

An extra left parenthesis was found.

MismatchedRParen(usize)

An extra right parenthesis was found.

UnexpectedComma(usize)

Comma that is not separating function arguments.

NotEnoughOperands(usize)

Too few operands for some operator.

TooManyOperands

Too many operands reported.

Trait Implementations

impl Eq for RPNError
[src]

impl PartialEq for RPNError
[src]

fn eq(&self, __arg_0: &RPNError) -> bool

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

fn ne(&self, __arg_0: &RPNError) -> bool

This method tests for !=.

impl Copy for RPNError
[src]

impl Clone for RPNError
[src]

fn clone(&self) -> RPNError

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for RPNError
[src]

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

Formats the value using the given formatter.

impl Display for RPNError
[src]

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

Formats the value using the given formatter.

impl Error for RPNError
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

The lower-level cause of this error, if any. Read more