Enum eval::Error []

pub enum Error {
    UnsupportedOperator(String),
    CanNotExec(Operator),
    StartWithNonValueOperator,
    UnpairedBrackets,
    DuplicateValueNode,
    DuplicateOperatorNode,
    CommaNotWithFunction,
    BracketNotWithFunction,
    FunctionNotExists(String),
    ExpectedBoolean(Value),
    ExpectedIdentifier,
    ExpectedArray,
    ExpectedObject,
    ExpectedNumber,
    NoFinalNode,
    ArgumentsGreater(usize),
    ArgumentsLess(usize),
    UnsupportedTypes(StringString),
    InvalidRange(String),
    CanNotAddChild,
    Custom(String),
}

Expression parsing error

Variants

Unsupported operator yet.

This operator does not support execution.

Your expression may start with non-value operator like ( + * )

Unpaired brackets, left brackets count does not equal right brackets count

Duplicate values node, you may have (2 3) but there is no operators between them

Duplicate operators node, you may have (+ +) but there is no values between them

You have a comma(,) , but there is no function in front of it.

You have empty brackets () , but there is no function in front of it.

Function not exists.

Expected a boolean but the given value isn't.

Expected ident.

Expected array.

Expected object.

Expect number.

Failed to parse, no final expression.

The number of arguments is greater than the maximum limit.

The number of arguments is less than the minimum limit.

This two value types are different or do not support mathematical calculations.

Invalid range expression like 1..2..3

Can not add child node.

Custom error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

[src]

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

[src]

This method tests for !=.

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more