pub enum BinOp {
And,
Or,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Plus,
}Variants§
And
Or
Eq
Ne
Lt
Le
Gt
Ge
Plus
+ — string concatenation when either operand is a string;
numeric addition when both coerce to f64; empty string
otherwise. Matches JS coercion closely enough for templates
that compose IDs like $id + '-title'.
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 UnsafeUnpin 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