Enum xxcalc::calculator::CalculationError [] [src]

pub enum CalculationError {
    ParsingError(ParsingError),
    EvaluationError(EvaluationError),
}

CalculationError wraps parsing and evaluation errors

Variants

ParsingError returned from TokensProcessor

EvaluationError returned from TokensReducer

Trait Implementations

impl Debug for CalculationError
[src]

Formats the value using the given formatter.

impl PartialEq for CalculationError
[src]

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

This method tests for !=.

impl From<ParsingError> for CalculationError
[src]

Wraps ParsingError in CalculationError

Performs the conversion.

impl From<EvaluationError> for CalculationError
[src]

Wraps EvaluationError in CalculationError

Performs the conversion.