Enum calc::CalcError [] [src]

pub enum CalcError {
    BadTypes(PartialComp),
    DivideByZero,
    InvalidNumber(String),
    InvalidOperator(char),
    UnrecognizedToken(String),
    UnexpectedToken(String, &'static str),
    UnknownAtom(String),
    UnexpectedEndOfInput,
    UnmatchedParenthesis,
    WouldOverflow(PartialComp),
    WouldTruncate(PartialComp),
}

Variants

Trait Implementations

impl Debug for CalcError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for CalcError
[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 CalcError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<ParseIntError> for CalcError
[src]

[src]

Performs the conversion.