#[non_exhaustive]pub enum IntOp {
}Expand description
An operation over integers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Const1(bool)
Create a constant 1 bit integer.
Const8(u8)
Create a constant 8 bit integer.
Const16(u16)
Create a constant 16 bit integer.
Const32(u32)
Create a constant 32 bit integer.
Const64(u64)
Create a constant 64 bit integer.
Add
Add two integers.
Sub
Subtract two integers.
Mul
Multiply two integers.
DivS
Divide two signed integers.
DivU
Divide two unsigned integers.
Pow
Take the power of an integer.
And
Logical bitwise AND.
Or
Logical bitwise OR.
Xor
Logical bitwise XOR.
Not
Logical bitwise NOT.
MinS
Minimum of two signed integers.
MinU
Minimum of two unsigned integers.
MaxS
Maximum of two signed integers.
MaxU
Maximum of two unsigned integers.
Eq
Test two integers for equality.
LtS
Check if one signed integer is strictly less than another.
LteS
Check if one signed integer is less than or equal to another.
LtU
Check if one unsigned integer is strictly less than another.
LteU
Check if one unsigned integer is less than or equal to another.
Abs
Take the absolute value of a signed integer.
RemS
Remainder of a division of two signed integers.
RemU
Remainder of a division of two unsigned integers.
Shl
Logical shift left.
Shr
Logical shift right.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntOp
impl RefUnwindSafe for IntOp
impl Send for IntOp
impl Sync for IntOp
impl Unpin for IntOp
impl UnsafeUnpin for IntOp
impl UnwindSafe for IntOp
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