E64

Struct E64 

Source
pub struct E64(pub u64);

Tuple Fields§

§0: u64

Trait Implementations§

Source§

impl Add for E64

Source§

type Output = E64

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
Source§

impl AddAssign for E64

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl BitAnd for E64

Source§

type Output = E64

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for E64

Source§

fn bitand_assign(&mut self, other: Self)

Performs the &= operation. Read more
Source§

impl BitOr for E64

Source§

type Output = E64

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for E64

Source§

fn bitor_assign(&mut self, other: Self)

Performs the |= operation. Read more
Source§

impl BitXor for E64

Source§

type Output = E64

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for E64

Source§

fn bitxor_assign(&mut self, other: Self)

Performs the ^= operation. Read more
Source§

impl Clone for E64

Source§

fn clone(&self) -> E64

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for E64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for E64

Source§

fn default() -> E64

Returns the “default value” for a type. Read more
Source§

impl Display for E64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div for E64

Source§

type Output = E64

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for E64

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl Eint for E64

Source§

const BITS: u32 = 64u32

Source§

const MIN_U: Self

Source§

const MAX_U: Self

Source§

const MIN_S: Self

Source§

const MAX_S: Self

Source§

const ONE: Self

Source§

const ZERO: Self

Source§

fn bit(&self, n: u32) -> bool

Get bit.
Source§

fn bit_clr(&mut self, n: u32)

Clear bit.
Source§

fn bit_set(&mut self, n: u32)

Set bit.
Source§

fn clz(&self) -> u32

Returns the number of leading zeros in the binary representation of self.
Source§

fn cmp_s(&self, other: &Self) -> Ordering

Compare. Signed.
Source§

fn cmp_u(&self, other: &Self) -> Ordering

Compare.
Source§

fn cpop(&self) -> u32

Returns the number of ones in the binary representation of self.
Source§

fn ctz(&self) -> u32

Returns the number of trailing zeros in the binary representation of self.
Source§

fn get(mem: &[u8]) -> Self

Get a native endian integer value from its representation as a byte slice in little endian.
Source§

fn hi(self) -> Self

Returns the higher part.
Source§

fn is_negative(&self) -> bool

Returns true if highest bit is set.
Source§

fn is_positive(&self) -> bool

Returns true if highest bit is not set.
Source§

fn lo(self) -> Self

Returns the lower part.
Source§

fn lo_sext(self) -> Self

Returns the lower part and sign extend it.
Source§

fn overflowing_add_s(self, other: Self) -> (Self, bool)

Calculates self + rhs. Signed.
Source§

fn overflowing_add_u(self, other: Self) -> (Self, bool)

Calculates self + rhs.
Source§

fn overflowing_mul_s(self, other: Self) -> (Self, bool)

Calculates self * rhs. Signed.
Source§

fn overflowing_mul_u(self, other: Self) -> (Self, bool)

Calculates self * rhs.
Source§

fn overflowing_sub_s(self, other: Self) -> (Self, bool)

Calculates self - rhs. Signed.
Source§

fn overflowing_sub_u(self, other: Self) -> (Self, bool)

Calculates self - rhs.
Source§

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])

Put the lower part integer as a byte array in little-endian byte order to memory.
Source§

fn u8(self) -> u8

Returns the lower 8 bits.
Source§

fn u16(self) -> u16

Returns the lower 16 bits.
Source§

fn u32(self) -> u32

Returns the lower 32 bits.
Source§

fn u64(self) -> u64

Returns the lower 64 bits.
Source§

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

Wrapping (modular) division. Signed. Read more
Source§

fn wrapping_div_u(self, other: Self) -> Self

Wrapping (modular) division. Computes self / rhs. Read more
Source§

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

Wrapping (modular) remainder. Signed. Read more
Source§

fn wrapping_rem_u(self, other: Self) -> Self

Wrapping (modular) remainder. Read more
Source§

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

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

Panic-free bitwise sign shift-right.
Source§

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

Returns (self + rhs) >> 1. Signed.
Source§

fn average_add_u(self, other: Self) -> Self

Returns (self + rhs) >> 1.
Source§

fn average_sub_s(self, other: Self) -> Self

Returns (self - rhs) >> 1. Signed.
Source§

fn average_sub_u(self, other: Self) -> Self

Returns (self - rhs) >> 1.
Source§

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)

Saturating integer addition. Computes self + rhs, saturating at the numeric bounds instead of overflowing.
Source§

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)

Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
Source§

fn sext(self, other: u32) -> Self

Sign extended.
Source§

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)

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)

Widening multiple. Signed. Read more
Source§

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)

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)

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)

Widening substract. (lo, hi) = x - y with the product bits’ upper half returned in hi and the lower half returned in lo.
Source§

fn zext(self, other: u32) -> Self

Zero extended.
Source§

impl EintWideningMulU for E64

Source§

fn _widening_mul_u(self, other: Self) -> (Self, Self)

Source§

impl From<E16> for E64

Source§

fn from(small: E16) -> Self

Converts to this type from the input type.
Source§

impl From<E32> for E64

Source§

fn from(small: E32) -> Self

Converts to this type from the input type.
Source§

impl From<E64> for E1024

Source§

fn from(small: E64) -> Self

Converts to this type from the input type.
Source§

impl From<E64> for E128

Source§

fn from(small: E64) -> Self

Converts to this type from the input type.
Source§

impl From<E64> for E2048

Source§

fn from(small: E64) -> Self

Converts to this type from the input type.
Source§

impl From<E64> for E256

Source§

fn from(small: E64) -> Self

Converts to this type from the input type.
Source§

impl From<E64> for E512

Source§

fn from(small: E64) -> Self

Converts to this type from the input type.
Source§

impl From<E8> for E64

Source§

fn from(small: E8) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for E64

Source§

fn from(small: bool) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for E64

Source§

fn from(small: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for E64

Source§

fn from(small: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for E64

Source§

fn from(small: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for E64

Source§

fn from(small: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for E64

Source§

fn from(small: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for E64

Source§

fn from(small: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for E64

Source§

fn from(small: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for E64

Source§

fn from(small: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for E64

Source§

fn from(small: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for E64

Source§

fn from(small: u8) -> Self

Converts to this type from the input type.
Source§

impl LowerHex for E64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul for E64

Source§

type Output = E64

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for E64

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl Neg for E64

Source§

type Output = E64

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for E64

Source§

type Output = E64

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Ord for E64

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for E64

Source§

fn eq(&self, other: &E64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for E64

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem for E64

Source§

type Output = E64

The resulting type after applying the % operator.
Source§

fn rem(self, other: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign for E64

Source§

fn rem_assign(&mut self, other: Self)

Performs the %= operation. Read more
Source§

impl Shl<u32> for E64

Source§

type Output = E64

The resulting type after applying the << operator.
Source§

fn shl(self, other: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shr<u32> for E64

Source§

type Output = E64

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Sub for E64

Source§

type Output = E64

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for E64

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl Copy for E64

Source§

impl Eq for E64

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.