pub enum BinOp {
Show 22 variants
And,
Or,
Implies,
Iff,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Add,
Sub,
Mul,
Div,
Mod,
In,
NotIn,
Union,
Intersect,
Diff,
SubsetOf,
Concat,
}Expand description
Binary operator.
Variants§
And
Or
Implies
Iff
Eq
Ne
Lt
Le
Gt
Ge
Add
Sub
Mul
Div
Mod
In
NotIn
Union
Intersect
Diff
SubsetOf
Concat
Implementations§
Source§impl BinOp
impl BinOp
Sourcepub fn precedence(self) -> u8
pub fn precedence(self) -> u8
Get the precedence of this operator (higher = binds tighter).
Sourcepub fn is_right_assoc(self) -> bool
pub fn is_right_assoc(self) -> bool
Check if this operator is right-associative.
Trait Implementations§
impl Copy for BinOp
impl Eq for BinOp
impl StructuralPartialEq for BinOp
Auto Trait Implementations§
impl Freeze for BinOp
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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