#[non_exhaustive]pub enum BinaryOperator {
Show 15 variants
Add,
Subtract,
Multiply,
Divide,
Power,
Concat,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
Range,
Union,
Intersection,
}Expand description
A supported binary formula operator.
Debug prints the quoted spelling to preserve the former string-based
AST’s debug output, also embedded in AST display text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
Subtract
Multiply
Divide
Power
Concat
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
Range
Union
Intersection
Implementations§
Trait Implementations§
Source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
impl Copy for BinaryOperator
Source§impl Debug for BinaryOperator
impl Debug for BinaryOperator
Source§impl Display for BinaryOperator
impl Display for BinaryOperator
impl Eq for BinaryOperator
Source§impl Hash for BinaryOperator
impl Hash for BinaryOperator
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl Freeze for BinaryOperator
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnsafeUnpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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