pub enum BinaryOp {
Pipe(Option<String>),
Comma,
Alt,
Or,
And,
Math(MathOp),
Assign(AssignOp),
Ord(OrdOp),
}Expand description
Binary operators, such as |, ,, //, …
Variants
Pipe(Option<String>)
Application, i.e. l | r if no string is given, else l as $x | r
Comma
Concatenation, i.e. l, r
Alt
Alternation, i.e. l // r
Or
Logical disjunction, i.e. l or r
And
Logical conjunction, i.e. l and r
Math(MathOp)
Arithmetic operation, e.g. l + r, l - r, …
Assign(AssignOp)
Assignment, i.e. l = r, l |= r, l += r, l -= r, …
Ord(OrdOp)
Ordering operation, e.g. l == r, l <= r, …
Trait Implementations
sourceimpl<'de> Deserialize<'de> for BinaryOp
impl<'de> Deserialize<'de> for BinaryOp
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more