Enum rtlola_parser::ast::BinOp [−][src]
pub enum BinOp {
Show variants
Add,
Sub,
Mul,
Div,
Rem,
Pow,
And,
Or,
BitXor,
BitAnd,
BitOr,
Shl,
Shr,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
}Expand description
An Ast node representing a binary operator.
Variants
The + operator (addition)
The - operator (subtraction)
The * operator (multiplication)
The / operator (division)
The % operator (modulus)
The ** operator (power)
The && operator (logical and)
The || operator (logical or)
The ^ operator (bitwise xor)
The & operator (bitwise and)
The | operator (bitwise or)
The << operator (shift left)
The >> operator (shift right)
The == operator (equality)
The < operator (less than)
The <= operator (less than or equal to)
The != operator (not equal to)
The >= operator (greater than or equal to)
The > operator (greater than)
Trait Implementations
impl Copy for BinOp[src]
impl StructuralPartialEq for BinOp[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more