pub enum BinOpKind {
Show 20 variants
Exp,
Mul,
Div,
Mod,
Add,
Sub,
BitRight,
BitLeft,
BitAnd,
BitOr,
Greater,
GreaterEq,
Less,
LessEq,
Eq,
NotEq,
ApproxEq,
ApproxNotEq,
And,
Or,
}Expand description
The binary operation that is being performed.
Variants§
Exp
Mul
Div
Mod
Add
Sub
BitRight
BitLeft
BitAnd
BitOr
Greater
GreaterEq
Less
LessEq
Eq
NotEq
ApproxEq
ApproxNotEq
And
Or
Implementations§
Source§impl BinOpKind
impl BinOpKind
Sourcepub fn precedence(&self) -> Precedence
pub fn precedence(&self) -> Precedence
Returns the precedence of the binary operation.
Sourcepub fn associativity(&self) -> Associativity
pub fn associativity(&self) -> Associativity
Returns the associativity of the binary operation.
Trait Implementations§
Source§impl From<AssignOpKind> for BinOpKind
impl From<AssignOpKind> for BinOpKind
Source§fn from(value: AssignOpKind) -> Self
fn from(value: AssignOpKind) -> Self
Converts to this type from the input type.
impl Copy for BinOpKind
impl Eq for BinOpKind
impl StructuralPartialEq for BinOpKind
Auto Trait Implementations§
impl Freeze for BinOpKind
impl RefUnwindSafe for BinOpKind
impl Send for BinOpKind
impl Sync for BinOpKind
impl Unpin for BinOpKind
impl UnwindSafe for BinOpKind
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