Enum xxcalc::calculator::CalculationError
[−]
[src]
pub enum CalculationError { ParsingError(ParsingError), EvaluationError(EvaluationError), }
CalculationError
wraps parsing and evaluation errors
Variants
ParsingError(ParsingError)
ParsingError
returned from TokensProcessor
EvaluationError(EvaluationError)
EvaluationError
returned from TokensReducer
Trait Implementations
impl Debug for CalculationError
[src]
impl PartialEq for CalculationError
[src]
fn eq(&self, __arg_0: &CalculationError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CalculationError) -> bool
This method tests for !=
.
impl From<ParsingError> for CalculationError
[src]
Wraps ParsingError
in CalculationError
fn from(e: ParsingError) -> CalculationError
Performs the conversion.
impl From<EvaluationError> for CalculationError
[src]
Wraps EvaluationError
in CalculationError
fn from(e: EvaluationError) -> CalculationError
Performs the conversion.