Enum meval::Error [] [src]

pub enum Error {
    UnknownVariable(String),
    Function(StringFuncEvalError),
    ParseError(ParseError),
    RPNError(RPNError),
}

An error produced during parsing or evaluation.

Variants

UnknownVariable(String)Function(StringFuncEvalError)ParseError(ParseError)

An error returned by the parser.

RPNError(RPNError)

The shunting-yard algorithm returned an error.

Trait Implementations

impl PartialEq for Error
[src]

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

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

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

This method tests for !=.

impl Clone for Error
[src]

fn clone(&self) -> Error

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 Error
[src]

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

Formats the value using the given formatter.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl From<ParseError> for Error
[src]

fn from(err: ParseError) -> Error

Performs the conversion.

impl From<RPNError> for Error
[src]

fn from(err: RPNError) -> Error

Performs the conversion.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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