Enum xxcalc::EvaluationError [] [src]

pub enum EvaluationError {
    UnknownSymbol(Stringusize),
    ArgumentMissing(Stringusizeusize),
    MultipleExpressions,
    ConflictingName(String),
    PolynomialError(PolynomialError),
    SolvingError(SolvingError),
    NonConstantExponent,
    NonNaturalExponent,
}

An error that occurs during token reduction, usually by an evaluator.

Variants

Encountered an operator, a constant or a function with no meaning to the evaluator. Most probably such symbol must be registered beforehand. The identifier is a first argument, while its position is the last one.

Number of provided arguments for a function or an operator are not enough (the function is registered with larger arity). The symbol is a first argument, expected arity is a second argument, while the position is the last one.

Multiple expressions where encountered, where not expected (as in too many arguments or too many complete expressions).

A symbol with given name is conflicting with already registered function or constant.

Wraps polynomial error which could be encountered during the evaluation as result of some mathematical operation.

Wraps linear solver error which could be encountered when assumptions needed for solving are not met.

Used when exponent is of greater degree than zero. Result of such exponentiation would not be a polynomial anylonger.

Used when exponent is not a natural number, while the base of exponentiation is not a constant. Result of such operations would not be a polynomial anylonger.

Trait Implementations

impl From<PolynomialError> for EvaluationError
[src]

Encloses PolynomialError into an EvaluationError

Performs the conversion.

impl Debug for EvaluationError
[src]

Formats the value using the given formatter.

impl PartialEq for EvaluationError
[src]

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

This method tests for !=.