pub enum BinaryExprType {
Show 18 variants
Add,
Sub,
Mul,
Div,
Mod,
AND,
OR,
Equal,
GT,
LT,
NotEqual,
GTEqual,
LTEqual,
REMatch,
NotREMatch,
IN,
IS,
DOT,
}
Expand description
Specifies the types of binary operations supported in UCG expression.
Variants§
Implementations§
Source§impl BinaryExprType
impl BinaryExprType
Sourcepub fn precedence_level(&self) -> u32
pub fn precedence_level(&self) -> u32
Returns the precedence level for the binary operator.
Higher values bind tighter than lower values.
Trait Implementations§
Source§impl Clone for BinaryExprType
impl Clone for BinaryExprType
Source§fn clone(&self) -> BinaryExprType
fn clone(&self) -> BinaryExprType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BinaryExprType
impl Debug for BinaryExprType
Source§impl PartialEq for BinaryExprType
impl PartialEq for BinaryExprType
impl StructuralPartialEq for BinaryExprType
Auto Trait Implementations§
impl Freeze for BinaryExprType
impl RefUnwindSafe for BinaryExprType
impl Send for BinaryExprType
impl Sync for BinaryExprType
impl Unpin for BinaryExprType
impl UnwindSafe for BinaryExprType
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