pub enum BinaryOperator {
Show 18 variants
ShortCircuitOr,
ShortCircuitAnd,
Addition,
Subtraction,
Multiplication,
Division,
Remainder,
Equality,
Inequality,
LessThan,
LessThanEqual,
GreaterThan,
GreaterThanEqual,
BitwiseOr,
BitwiseAnd,
BitwiseXor,
ShiftLeft,
ShiftRight,
}
Variants§
ShortCircuitOr
ShortCircuitAnd
Addition
Subtraction
Multiplication
Division
Remainder
Equality
Inequality
LessThan
LessThanEqual
GreaterThan
GreaterThanEqual
BitwiseOr
BitwiseAnd
BitwiseXor
ShiftLeft
ShiftRight
Implementations§
Source§impl BinaryOperator
impl BinaryOperator
Sourcepub const fn is_short_circuit_or(&self) -> bool
pub const fn is_short_circuit_or(&self) -> bool
Returns true
if this value is of type ShortCircuitOr
. Returns false
otherwise
Sourcepub const fn is_short_circuit_and(&self) -> bool
pub const fn is_short_circuit_and(&self) -> bool
Returns true
if this value is of type ShortCircuitAnd
. Returns false
otherwise
Sourcepub const fn is_addition(&self) -> bool
pub const fn is_addition(&self) -> bool
Returns true
if this value is of type Addition
. Returns false
otherwise
Sourcepub const fn is_subtraction(&self) -> bool
pub const fn is_subtraction(&self) -> bool
Returns true
if this value is of type Subtraction
. Returns false
otherwise
Sourcepub const fn is_multiplication(&self) -> bool
pub const fn is_multiplication(&self) -> bool
Returns true
if this value is of type Multiplication
. Returns false
otherwise
Sourcepub const fn is_division(&self) -> bool
pub const fn is_division(&self) -> bool
Returns true
if this value is of type Division
. Returns false
otherwise
Sourcepub const fn is_remainder(&self) -> bool
pub const fn is_remainder(&self) -> bool
Returns true
if this value is of type Remainder
. Returns false
otherwise
Sourcepub const fn is_equality(&self) -> bool
pub const fn is_equality(&self) -> bool
Returns true
if this value is of type Equality
. Returns false
otherwise
Sourcepub const fn is_inequality(&self) -> bool
pub const fn is_inequality(&self) -> bool
Returns true
if this value is of type Inequality
. Returns false
otherwise
Sourcepub const fn is_less_than(&self) -> bool
pub const fn is_less_than(&self) -> bool
Returns true
if this value is of type LessThan
. Returns false
otherwise
Sourcepub const fn is_less_than_equal(&self) -> bool
pub const fn is_less_than_equal(&self) -> bool
Returns true
if this value is of type LessThanEqual
. Returns false
otherwise
Sourcepub const fn is_greater_than(&self) -> bool
pub const fn is_greater_than(&self) -> bool
Returns true
if this value is of type GreaterThan
. Returns false
otherwise
Sourcepub const fn is_greater_than_equal(&self) -> bool
pub const fn is_greater_than_equal(&self) -> bool
Returns true
if this value is of type GreaterThanEqual
. Returns false
otherwise
Sourcepub const fn is_bitwise_or(&self) -> bool
pub const fn is_bitwise_or(&self) -> bool
Returns true
if this value is of type BitwiseOr
. Returns false
otherwise
Sourcepub const fn is_bitwise_and(&self) -> bool
pub const fn is_bitwise_and(&self) -> bool
Returns true
if this value is of type BitwiseAnd
. Returns false
otherwise
Sourcepub const fn is_bitwise_xor(&self) -> bool
pub const fn is_bitwise_xor(&self) -> bool
Returns true
if this value is of type BitwiseXor
. Returns false
otherwise
Sourcepub const fn is_shift_left(&self) -> bool
pub const fn is_shift_left(&self) -> bool
Returns true
if this value is of type ShiftLeft
. Returns false
otherwise
Sourcepub const fn is_shift_right(&self) -> bool
pub const fn is_shift_right(&self) -> bool
Returns true
if this value is of type ShiftRight
. Returns false
otherwise
Trait Implementations§
Source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
Source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BinaryOperator
impl Debug for BinaryOperator
Source§impl Display for BinaryOperator
impl Display for BinaryOperator
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl Freeze for BinaryOperator
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more