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 Debug for RPNError
[src]
impl Debug for RPNError
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 RPNError
[src]
impl Clone for RPNError
fn clone(&self) -> RPNError
[src]
fn clone(&self) -> RPNError
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 Copy for RPNError
[src]
impl Copy for RPNError
impl PartialEq for RPNError
[src]
impl PartialEq for RPNError
fn eq(&self, other: &RPNError) -> bool
[src]
fn eq(&self, other: &RPNError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RPNError) -> bool
[src]
fn ne(&self, other: &RPNError) -> bool
This method tests for !=
.
impl Eq for RPNError
[src]
impl Eq for RPNError
impl Display for RPNError
[src]
impl Display for RPNError
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 Error for RPNError
[src]
impl Error for RPNError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<RPNError> for Error
[src]
impl From<RPNError> for Error