Enum meval::Error [−][src]
pub enum Error { UnknownVariable(String), Function(String, FuncEvalError), ParseError(ParseError), RPNError(RPNError), }
An error produced during parsing or evaluation.
Variants
UnknownVariable(String)
Function(String, FuncEvalError)
ParseError(ParseError)
An error returned by the parser.
RPNError(RPNError)
The shunting-yard algorithm returned an error.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
fn from(err: ParseError) -> Error
[src]
fn from(err: ParseError) -> Error
Performs the conversion.
impl From<RPNError> for Error
[src]
impl From<RPNError> for Error
impl Error for Error
[src]
impl Error for Error