pub enum MathBi {
Add,
Sub,
Mult,
Div,
Mod,
BitAnd,
BitOr,
BitXor,
ShiftLeft,
ShiftRight,
}
Expand description
Math binary operators
Variants§
Add
Adition +
2 + 3
Sub
Subtration -
2 - 3
Mult
Multiplication *
5 * 2
Div
Division /
4 / 2
Mod
Module %
3 % 2
BitAnd
Bitwise and &
0b0101 & 0b0001
BitOr
Bitwise or |
0b0101 | 0b0001
BitXor
Bitwise xor ^
0b0101 ^ 0b0001
ShiftLeft
Bit shift left <<
0b0101 << 0b0001
ShiftRight
Bit shift left >>
0b0101 >> 0b0001
Implementations§
Trait Implementations§
Source§impl BinaryOperator for MathBi
impl BinaryOperator for MathBi
fn push_operator<Sql, Arg>(&self, sql: &mut Sql)where
Sql: WriteSql<Arg>,
impl Copy for MathBi
impl Eq for MathBi
impl StructuralPartialEq for MathBi
Auto Trait Implementations§
impl Freeze for MathBi
impl RefUnwindSafe for MathBi
impl Send for MathBi
impl Sync for MathBi
impl Unpin for MathBi
impl UnwindSafe for MathBi
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