Enum koto_parser::AstBinaryOp
source · pub enum AstBinaryOp {
Show 19 variants
Add,
Subtract,
Multiply,
Divide,
Remainder,
AddAssign,
SubtractAssign,
MultiplyAssign,
DivideAssign,
RemainderAssign,
Equal,
NotEqual,
Less,
LessOrEqual,
Greater,
GreaterOrEqual,
And,
Or,
Pipe,
}
Expand description
An operation used in BinaryOp expressions
Variants§
Add
Subtract
Multiply
Divide
Remainder
AddAssign
SubtractAssign
MultiplyAssign
DivideAssign
RemainderAssign
Equal
NotEqual
Less
LessOrEqual
Greater
GreaterOrEqual
And
Or
Pipe
Trait Implementations§
source§impl Clone for AstBinaryOp
impl Clone for AstBinaryOp
source§fn clone(&self) -> AstBinaryOp
fn clone(&self) -> AstBinaryOp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AstBinaryOp
impl Debug for AstBinaryOp
source§impl PartialEq for AstBinaryOp
impl PartialEq for AstBinaryOp
source§fn eq(&self, other: &AstBinaryOp) -> bool
fn eq(&self, other: &AstBinaryOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AstBinaryOp
impl Eq for AstBinaryOp
impl StructuralPartialEq for AstBinaryOp
Auto Trait Implementations§
impl Freeze for AstBinaryOp
impl RefUnwindSafe for AstBinaryOp
impl Send for AstBinaryOp
impl Sync for AstBinaryOp
impl Unpin for AstBinaryOp
impl UnwindSafe for AstBinaryOp
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