pub struct E64(pub u64);Tuple Fields§
§0: u64Trait Implementations§
Source§impl AddAssign for E64
impl AddAssign for E64
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BitAndAssign for E64
impl BitAndAssign for E64
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for E64
impl BitOrAssign for E64
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for E64
impl BitXorAssign for E64
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl DivAssign for E64
impl DivAssign for E64
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl Eint for E64
impl Eint for E64
const BITS: u32 = 64u32
const MIN_U: Self
const MAX_U: Self
const MIN_S: Self
const MAX_S: Self
const ONE: Self
const ZERO: Self
Source§fn clz(&self) -> u32
fn clz(&self) -> u32
Returns the number of leading zeros in the binary representation of self.
Source§fn ctz(&self) -> u32
fn ctz(&self) -> u32
Returns the number of trailing zeros in the binary representation of self.
Source§fn get(mem: &[u8]) -> Self
fn get(mem: &[u8]) -> Self
Get a native endian integer value from its representation as a byte slice in little endian.
Source§fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Returns true if highest bit is set.
Source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Returns true if highest bit is not set.
Source§fn overflowing_add_s(self, other: Self) -> (Self, bool)
fn overflowing_add_s(self, other: Self) -> (Self, bool)
Calculates self + rhs. Signed.
Source§fn overflowing_add_u(self, other: Self) -> (Self, bool)
fn overflowing_add_u(self, other: Self) -> (Self, bool)
Calculates self + rhs.
Source§fn overflowing_mul_s(self, other: Self) -> (Self, bool)
fn overflowing_mul_s(self, other: Self) -> (Self, bool)
Calculates self * rhs. Signed.
Source§fn overflowing_mul_u(self, other: Self) -> (Self, bool)
fn overflowing_mul_u(self, other: Self) -> (Self, bool)
Calculates self * rhs.
Source§fn overflowing_sub_s(self, other: Self) -> (Self, bool)
fn overflowing_sub_s(self, other: Self) -> (Self, bool)
Calculates self - rhs. Signed.
Source§fn overflowing_sub_u(self, other: Self) -> (Self, bool)
fn overflowing_sub_u(self, other: Self) -> (Self, bool)
Calculates self - rhs.
Source§fn put(&self, mem: &mut [u8])
fn put(&self, mem: &mut [u8])
Save the integer as a byte array in little-endian byte order to memory.
Source§fn put_lo(&self, mem: &mut [u8])
fn put_lo(&self, mem: &mut [u8])
Put the lower part integer as a byte array in little-endian byte order to memory.
Source§fn wrapping_add(self, other: Self) -> Self
fn wrapping_add(self, other: Self) -> Self
Wrapping (modular) addition. Computes self + rhs, wrapping around at the boundary of the type.
Source§fn wrapping_div_s(self, other: Self) -> Self
fn wrapping_div_s(self, other: Self) -> Self
Wrapping (modular) division. Signed. Read more
Source§fn wrapping_div_u(self, other: Self) -> Self
fn wrapping_div_u(self, other: Self) -> Self
Wrapping (modular) division. Computes self / rhs. Read more
Source§fn wrapping_mul(self, other: Self) -> Self
fn wrapping_mul(self, other: Self) -> Self
Wrapping (modular) multiplication. Computes self * rhs, wrapping around at the boundary of the type.
Source§fn wrapping_rem_s(self, other: Self) -> Self
fn wrapping_rem_s(self, other: Self) -> Self
Wrapping (modular) remainder. Signed. Read more
Source§fn wrapping_rem_u(self, other: Self) -> Self
fn wrapping_rem_u(self, other: Self) -> Self
Wrapping (modular) remainder. Read more
Source§fn wrapping_shl(self, other: u32) -> Self
fn wrapping_shl(self, other: u32) -> Self
Panic-free bitwise shift-left; yields self << mask(rhs), where mask removes any high-order bits of rhs that
would cause the shift to exceed the bitwidth of the type.
Source§fn wrapping_shr(self, other: u32) -> Self
fn wrapping_shr(self, other: u32) -> Self
Panic-free bitwise shift-right; yields self >> mask(rhs), where mask removes any high-order bits of rhs that
would cause the shift to exceed the bitwidth of the type.
Source§fn wrapping_sra(self, other: u32) -> Self
fn wrapping_sra(self, other: u32) -> Self
Panic-free bitwise sign shift-right.
Source§fn wrapping_sub(self, other: Self) -> Self
fn wrapping_sub(self, other: Self) -> Self
Wrapping (modular) subtraction. Computes self - rhs, wrapping around at the boundary of the type.
Source§fn average_add_s(self, other: Self) -> Self
fn average_add_s(self, other: Self) -> Self
Returns (self + rhs) >> 1. Signed.
Source§fn average_add_u(self, other: Self) -> Self
fn average_add_u(self, other: Self) -> Self
Returns (self + rhs) >> 1.
Source§fn average_sub_s(self, other: Self) -> Self
fn average_sub_s(self, other: Self) -> Self
Returns (self - rhs) >> 1. Signed.
Source§fn average_sub_u(self, other: Self) -> Self
fn average_sub_u(self, other: Self) -> Self
Returns (self - rhs) >> 1.
Source§fn saturating_add_s(self, other: Self) -> (Self, bool)
fn saturating_add_s(self, other: Self) -> (Self, bool)
Saturating integer addition. Computes self + rhs, saturating at the numeric bounds instead of overflowing. Signed.
Source§fn saturating_add_u(self, other: Self) -> (Self, bool)
fn saturating_add_u(self, other: Self) -> (Self, bool)
Saturating integer addition. Computes self + rhs, saturating at the numeric bounds instead of overflowing.
Source§fn saturating_sub_s(self, other: Self) -> (Self, bool)
fn saturating_sub_s(self, other: Self) -> (Self, bool)
Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing. Signed.
Source§fn saturating_sub_u(self, other: Self) -> (Self, bool)
fn saturating_sub_u(self, other: Self) -> (Self, bool)
Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
Source§fn widening_add_s(self, other: Self) -> (Self, Self)
fn widening_add_s(self, other: Self) -> (Self, Self)
Widening add. Signed.
(lo, hi) = x + y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§fn widening_add_u(self, other: Self) -> (Self, Self)
fn widening_add_u(self, other: Self) -> (Self, Self)
Widening add.
(lo, hi) = x + y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§fn widening_mul_s(self, other: Self) -> (Self, Self)
fn widening_mul_s(self, other: Self) -> (Self, Self)
Widening multiple. Signed. Read more
Source§fn widening_mul_su(self, other: Self) -> (Self, Self)
fn widening_mul_su(self, other: Self) -> (Self, Self)
Widening signed and unsigned integer multiply.
(lo, hi) = x * y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§fn widening_mul_u(self, other: Self) -> (Self, Self)
fn widening_mul_u(self, other: Self) -> (Self, Self)
Widening multiple.
(lo, hi) = x * y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§fn widening_sub_s(self, other: Self) -> (Self, Self)
fn widening_sub_s(self, other: Self) -> (Self, Self)
Widening substract. Signed.
(lo, hi) = x - y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§fn widening_sub_u(self, other: Self) -> (Self, Self)
fn widening_sub_u(self, other: Self) -> (Self, Self)
Widening substract.
(lo, hi) = x - y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§impl EintWideningMulU for E64
impl EintWideningMulU for E64
fn _widening_mul_u(self, other: Self) -> (Self, Self)
Source§impl MulAssign for E64
impl MulAssign for E64
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl Ord for E64
impl Ord for E64
Source§impl PartialOrd for E64
impl PartialOrd for E64
Source§impl RemAssign for E64
impl RemAssign for E64
Source§fn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the
%= operation. Read moreSource§impl SubAssign for E64
impl SubAssign for E64
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for E64
impl Eq for E64
impl StructuralPartialEq for E64
Auto Trait Implementations§
impl Freeze for E64
impl RefUnwindSafe for E64
impl Send for E64
impl Sync for E64
impl Unpin for E64
impl UnwindSafe for E64
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