pub enum Operator {
LeftAssociative(LeftAssociativeOperator),
Functional(FunctionalOperator),
}Expand description
An operator is an operator that can be used in an equation (i.e. +).
Variants§
LeftAssociative(LeftAssociativeOperator)
A left-associative operator is an operator that requires a left and right of the equation (i.e. +).
Functional(FunctionalOperator)
A functional operator is an operator that requires only a right of the equation (i.e. sin).
Trait Implementations§
Source§impl From<FunctionalOperator> for Operator
impl From<FunctionalOperator> for Operator
Source§fn from(val: FunctionalOperator) -> Self
fn from(val: FunctionalOperator) -> Self
Converts to this type from the input type.
Source§impl From<LeftAssociativeOperator> for Operator
impl From<LeftAssociativeOperator> for Operator
Source§fn from(val: LeftAssociativeOperator) -> Self
fn from(val: LeftAssociativeOperator) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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