pub enum BinOp {
Add,
Sub,
Mul,
Div,
FloorDiv,
Mod,
Pow,
Concat,
And,
Or,
In,
Is,
}Expand description
Binary operators (arithmetic, logical short-circuit forms use these in the AST).
Variants§
Add
Sub
Mul
Div
FloorDiv
Mod
Pow
Concat
String concatenation (~), compiled as + "" + in Nunjucks JS output.
And
Or
In
Membership (runtime.inOperator in Nunjucks).
Is
is test (right-hand side is typically a variable naming the test).
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