pub enum E {
}Expand description
The error that is returned when attempting to evaluate the input.
Variants§
MissingLF
The input was not terminated with a line feed.
InvalidQuit
The input began with a q but had other non-spaces
that followed it.
InvalidRecall
The input began with an = but
was otherwise syntactically invalid.
DivByZero(usize)
A sub-expression in the input would have led to a division by zero.
ExpIsNotInt(usize)
A sub-expression in the input would have led to a rational number that was not 0 or 1 to be raised to a non-integer power.
ExpDivByZero(usize)
A sub-expression in the input would have led to 0 being raised to a negative power which itself would have led to a division by zero.
NotNonNegIntFact(usize)
A sub-expression in the input would have led to a non-integer factorial or a negative integer factorial.
InvalidDec(usize)
The input contained a non-empty sequence of digits followed
by . which was not followed by a non-empty sequence of digits.
NotEnoughPrevResults(u8)
A recall expression was used to recall the i-th previous result, but there are fewer than i previous results where i ∈ {1, 2, 3, 4, 5, 6, 7, 8}.
InvalidAbs(usize)
The input did not contain a closing |.
InvalidPar(usize)
The input did not contain a closing ).
MissingTerm(usize)
A sub-expression in the input had a missing terminal expression where a terminal expression is a decimal literal expression, recall expression, absolute value expression, or a parenthetical expression.
TrailingSyms(usize)
The input started with a valid expression but was immediately followed by symbols that could not be chained with the preceding expression.