pub enum Item {
Value(f64),
Variable(String),
Operator(Operator),
Group(Group),
}Expand description
An item represents a single item in an equation.
Variants§
Value(f64)
A value is a number.
Variable(String)
A variable is a variable that can be replaced later.
Operator(Operator)
An operator is an operator that can be used in an equation (i.e. +).
Group(Group)
A group is a group of items (like those inside of bracets).
Trait Implementations§
Source§impl From<FunctionalOperator> for Item
impl From<FunctionalOperator> for Item
Source§fn from(val: FunctionalOperator) -> Self
fn from(val: FunctionalOperator) -> Self
Converts to this type from the input type.
Source§impl From<LeftAssociativeOperator> for Item
impl From<LeftAssociativeOperator> for Item
Source§fn from(val: LeftAssociativeOperator) -> Self
fn from(val: LeftAssociativeOperator) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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