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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for O<'a>
impl<'a> Send for O<'a>
impl<'a> Sync for O<'a>
impl<'a> Unpin for O<'a>
impl<'a> UnwindSafe for O<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more