pub enum Operator {
Show 17 variants
Plus,
Minus,
Multiply,
Divide,
Greater,
GreaterEqual,
Less,
LessEqual,
Equal,
NotEqual,
And,
Or,
Xor,
Not,
Div,
Mod,
TernaryCondition,
}Expand description
A binary or arithemtic operator.
Variants§
Plus
Minus
Multiply
Divide
Greater
GreaterEqual
Less
LessEqual
Equal
NotEqual
And
Or
Xor
Not
Div
Mod
TernaryCondition
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for Operator
impl PartialOrd for Operator
Source§impl TryFrom<&Token> for Operator
impl TryFrom<&Token> for Operator
§Errors
Returns Error::TokenNotAnOperator if an invalid Token is encountered.
impl Copy for Operator
impl Eq for Operator
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