pub enum BinaryOp {
Show 14 variants
Add,
Sub,
Mul,
Div,
Eq,
NotEq,
Lt,
LtEq,
Gt,
GtEq,
And,
Or,
NullCoalesce,
Other(String),
}Expand description
Binary operators the analyzers understand, plus an explicit escape hatch for everything else — an unknown operator is a fact, not a guess.
Variants§
Add
+
Sub
-
Mul
*
Div
/
Eq
= / ==
NotEq
!=
Lt
<
LtEq
<=
Gt
>
GtEq
>=
And
AND / &&
Or
OR / ||
NullCoalesce
?? — null coalescing.
Other(String)
Any operator not modeled above, kept as raw text.
Trait Implementations§
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnsafeUnpin for BinaryOp
impl UnwindSafe for BinaryOp
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