pub enum O<'a> {
Empty(&'a Option<Ratio<BigInt>>),
Exit,
Eval(&'a Ratio<BigInt>),
Store(&'a Option<Ratio<BigInt>>),
}Expand description
A successful evaluation of an input.
Variants§
Empty(&'a Option<Ratio<BigInt>>)
The input only contained whitespace.
This returns the previous Eval.
It is None iff there have been no
previous Eval results.
Exit
The quit expression was issued to terminate the program.
Eval(&'a Ratio<BigInt>)
Result of a “normal” expression.
Store(&'a Option<Ratio<BigInt>>)
The store expression stores and returns the previous Eval.
It is None iff there have been no previous Eval results.