pub enum CalcToken {
Show 44 variants
Number(f64),
Bool(bool),
Add,
Sub,
Mul,
Div,
Idiv,
Mod,
Neg,
Abs,
Ceiling,
Floor,
Round,
Truncate,
Sqrt,
Exp,
Ln,
Log,
Sin,
Cos,
Atan,
Eq,
Ne,
Gt,
Ge,
Lt,
Le,
And,
Or,
Xor,
Not,
Bitshift,
Dup,
Exch,
Pop,
Copy,
Index,
Roll,
If(Vec<CalcToken>),
IfElse(Vec<CalcToken>, Vec<CalcToken>),
Cvi,
Cvr,
True,
False,
}Expand description
Token for Type 4 calculator functions.
Variants§
Number(f64)
Bool(bool)
Add
Sub
Mul
Div
Idiv
Mod
Neg
Abs
Ceiling
Floor
Round
Truncate
Sqrt
Exp
Ln
Log
Sin
Cos
Atan
Eq
Ne
Gt
Ge
Lt
Le
And
Or
Xor
Not
Bitshift
Dup
Exch
Pop
Copy
Index
Roll
If(Vec<CalcToken>)
IfElse(Vec<CalcToken>, Vec<CalcToken>)
Cvi
Cvr
True
False
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CalcToken
impl RefUnwindSafe for CalcToken
impl Send for CalcToken
impl Sync for CalcToken
impl Unpin for CalcToken
impl UnsafeUnpin for CalcToken
impl UnwindSafe for CalcToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more