Enum jsonpath_plus::ast::BinOp
source · [−]#[non_exhaustive]
pub enum BinOp {
And(DoubleAnd),
Or(DoublePipe),
Eq(EqEq),
Le(LessEq),
Lt(LessThan),
Gt(GreaterThan),
Ge(GreaterEq),
Add(Plus),
Sub(Dash),
Mul(Star),
Div(RightSlash),
Rem(Percent),
}
Expand description
A binary operator in an expression
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.
And(DoubleAnd)
&&
Or(DoublePipe)
||
Eq(EqEq)
==
Le(LessEq)
<=
Lt(LessThan)
<
Gt(GreaterThan)
>
Ge(GreaterEq)
>=
Add(Plus)
+
Sub(Dash)
-
Mul(Star)
*
Div(RightSlash)
/
Rem(Percent)
%
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more