pub enum ArithLogOp {
Show 22 variants
Not,
Neg,
Add,
Sub,
Mul,
Div,
Rem,
Pow,
And,
Or,
BitXor,
BitAnd,
BitOr,
BitNot,
Shl,
Shr,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
}
Expand description
Arithmetical and logical operations
Variants§
Not
Logic negation (!)
Neg
Arithmetic negation (-)
Add
Arithmetic addition (+)
Sub
Arithmetic subtraction (-)
Mul
Arithmetic multiplication (*)
Div
Arithmetic division (/)
Rem
Arithmetic modulation (%)
Pow
Arithmetic exponentiation (**)
And
Logic conjunction/multiplication (&&)
Or
Logic disjunction/addition (||)
BitXor
Bit-wise xor (^)
BitAnd
Bit-wise conjunction/multiplication (&)
BitOr
Bit-wise disjunction/addition (|)
BitNot
Bit-wise negation / One’s complement (~)
Shl
Bit-wise left-shift (<<)
Shr
Bit-wise right-shift (>>)
Eq
Semantic Equality (==)
Lt
Less-than comparison (<)
Le
Less-than-or-equal comparison (<=)
Ne
Semantic Inequality (!=)
Ge
Greater-than-or-equal comparison (>=)
Gt
Greater-than comparison (>)
Trait Implementations§
Source§impl Clone for ArithLogOp
impl Clone for ArithLogOp
Source§fn clone(&self) -> ArithLogOp
fn clone(&self) -> ArithLogOp
Returns a duplicate 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 ArithLogOp
impl Debug for ArithLogOp
Source§impl<'de> Deserialize<'de> for ArithLogOp
impl<'de> Deserialize<'de> for ArithLogOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ArithLogOp
impl Display for ArithLogOp
Source§impl PartialEq for ArithLogOp
impl PartialEq for ArithLogOp
Source§impl Serialize for ArithLogOp
impl Serialize for ArithLogOp
impl Copy for ArithLogOp
impl Eq for ArithLogOp
impl StructuralPartialEq for ArithLogOp
Auto Trait Implementations§
impl Freeze for ArithLogOp
impl RefUnwindSafe for ArithLogOp
impl Send for ArithLogOp
impl Sync for ArithLogOp
impl Unpin for ArithLogOp
impl UnwindSafe for ArithLogOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
Converts
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>
Converts
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