Struct End

Source
pub struct End<A, E: Endian>(/* private fields */);

Trait Implementations§

Source§

impl<A, B, E: Endian> Add<B> for End<A, E>
where A: From<End<A, E>> + Add<B>, End<<A as Add<B>>::Output, E>: From<<A as Add<B>>::Output>,

Source§

type Output = End<<A as Add<B>>::Output, E>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<A, B, E: Endian> BitAnd<B> for End<A, E>
where A: From<End<A, E>> + BitAnd<B>, End<<A as BitAnd<B>>::Output, E>: From<<A as BitAnd<B>>::Output>,

Source§

type Output = End<<A as BitAnd<B>>::Output, E>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<A: BitAndAssign<B>, B, E: Endian> BitAndAssign<B> for End<A, E>

Source§

fn bitand_assign(&mut self, operand: B)

Performs the &= operation. Read more
Source§

impl<A, B, E: Endian> BitOr<B> for End<A, E>
where A: From<End<A, E>> + BitOr<B>, End<<A as BitOr<B>>::Output, E>: From<<A as BitOr<B>>::Output>,

Source§

type Output = End<<A as BitOr<B>>::Output, E>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<A: BitOrAssign<B>, B, E: Endian> BitOrAssign<B> for End<A, E>

Source§

fn bitor_assign(&mut self, operand: B)

Performs the |= operation. Read more
Source§

impl<A, B, E: Endian> BitXor<B> for End<A, E>
where A: From<End<A, E>> + BitXor<B>, End<<A as BitXor<B>>::Output, E>: From<<A as BitXor<B>>::Output>,

Source§

type Output = End<<A as BitXor<B>>::Output, E>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<A: BitXorAssign<B>, B, E: Endian> BitXorAssign<B> for End<A, E>

Source§

fn bitxor_assign(&mut self, operand: B)

Performs the ^= operation. Read more
Source§

impl<A: Clone, E: Clone + Endian> Clone for End<A, E>

Source§

fn clone(&self) -> End<A, E>

Returns a copy 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<A, E: Copy + Endian> Debug for End<A, E>
where A: From<End<A, E>> + Debug + Copy,

Source§

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

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

impl<A, E: Copy + Endian> Display for End<A, E>
where A: From<End<A, E>> + Display + Copy,

Source§

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

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

impl<A, B, E: Endian> Div<B> for End<A, E>
where A: From<End<A, E>> + Div<B>, End<<A as Div<B>>::Output, E>: From<<A as Div<B>>::Output>,

Source§

type Output = End<<A as Div<B>>::Output, E>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<E: Endian> From<End<i128, E>> for i128

Source§

fn from(End: End<i128, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<i16, E>> for i16

Source§

fn from(End: End<i16, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<i32, E>> for i32

Source§

fn from(End: End<i32, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<i64, E>> for i64

Source§

fn from(End: End<i64, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<i8, E>> for i8

Source§

fn from(End: End<i8, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<isize, E>> for isize

Source§

fn from(End: End<isize, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<u128, E>> for u128

Source§

fn from(End: End<u128, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<u16, E>> for u16

Source§

fn from(End: End<u16, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<u32, E>> for u32

Source§

fn from(End: End<u32, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<u64, E>> for u64

Source§

fn from(End: End<u64, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<u8, E>> for u8

Source§

fn from(End: End<u8, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<End<usize, E>> for usize

Source§

fn from(End: End<usize, E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<i128> for End<i128, E>

Source§

fn from(a: i128) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<i16> for End<i16, E>

Source§

fn from(a: i16) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<i32> for End<i32, E>

Source§

fn from(a: i32) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<i64> for End<i64, E>

Source§

fn from(a: i64) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<i8> for End<i8, E>

Source§

fn from(a: i8) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<isize> for End<isize, E>

Source§

fn from(a: isize) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<u128> for End<u128, E>

Source§

fn from(a: u128) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<u16> for End<u16, E>

Source§

fn from(a: u16) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<u32> for End<u32, E>

Source§

fn from(a: u32) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<u64> for End<u64, E>

Source§

fn from(a: u64) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<u8> for End<u8, E>

Source§

fn from(a: u8) -> Self

Converts to this type from the input type.
Source§

impl<E: Endian> From<usize> for End<usize, E>

Source§

fn from(a: usize) -> Self

Converts to this type from the input type.
Source§

impl<A: Hash, E: Endian> Hash for End<A, E>

Source§

fn hash<H: Hasher>(&self, h: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<A, E: Copy + Endian> LowerHex for End<A, E>
where A: From<End<A, E>> + LowerHex + Copy,

Source§

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

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

impl<A, B, E: Endian> Mul<B> for End<A, E>
where A: From<End<A, E>> + Mul<B>, End<<A as Mul<B>>::Output, E>: From<<A as Mul<B>>::Output>,

Source§

type Output = End<<A as Mul<B>>::Output, E>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<A, E: Endian> Neg for End<A, E>
where A: From<End<A, E>> + Neg, End<<A as Neg>::Output, E>: From<<A as Neg>::Output>,

Source§

type Output = End<<A as Neg>::Output, E>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<A, E: Endian> Not for End<A, E>
where A: From<End<A, E>> + Not, End<<A as Not>::Output, E>: From<<A as Not>::Output>,

Source§

type Output = End<<A as Not>::Output, E>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<A, E: Copy + Endian> Octal for End<A, E>
where A: From<End<A, E>> + Octal + Copy,

Source§

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

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

impl<A: Copy + Ord, E: Copy + Endian> Ord for End<A, E>
where Self: Into<A>,

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<A: PartialEq, E: Endian> PartialEq for End<A, E>

Source§

fn eq(&self, other: &Self) -> 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<A: Copy + PartialOrd, E: Copy + Endian> PartialOrd for End<A, E>
where Self: Into<A>,

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<A, B, E: Endian> Rem<B> for End<A, E>
where A: From<End<A, E>> + Rem<B>, End<<A as Rem<B>>::Output, E>: From<<A as Rem<B>>::Output>,

Source§

type Output = End<<A as Rem<B>>::Output, E>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<A, B, E: Endian> Shl<B> for End<A, E>
where A: From<End<A, E>> + Shl<B>, End<<A as Shl<B>>::Output, E>: From<<A as Shl<B>>::Output>,

Source§

type Output = End<<A as Shl<B>>::Output, E>

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

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

Performs the << operation. Read more
Source§

impl<A, B, E: Endian> Shr<B> for End<A, E>
where A: From<End<A, E>> + Shr<B>, End<<A as Shr<B>>::Output, E>: From<<A as Shr<B>>::Output>,

Source§

type Output = End<<A as Shr<B>>::Output, E>

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

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

Performs the >> operation. Read more
Source§

impl<A, B, E: Endian> Sub<B> for End<A, E>
where A: From<End<A, E>> + Sub<B>, End<<A as Sub<B>>::Output, E>: From<<A as Sub<B>>::Output>,

Source§

type Output = End<<A as Sub<B>>::Output, E>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<A, E: Copy + Endian> UpperHex for End<A, E>
where A: From<End<A, E>> + UpperHex + Copy,

Source§

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

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

impl<A: Copy, E: Copy + Endian> Copy for End<A, E>

Source§

impl<A: Eq, E: Endian> Eq for End<A, E>

Auto Trait Implementations§

§

impl<A, E> Freeze for End<A, E>
where A: Freeze,

§

impl<A, E> RefUnwindSafe for End<A, E>

§

impl<A, E> Send for End<A, E>
where A: Send, E: Send,

§

impl<A, E> Sync for End<A, E>
where A: Sync, E: Sync,

§

impl<A, E> Unpin for End<A, E>
where A: Unpin, E: Unpin,

§

impl<A, E> UnwindSafe for End<A, E>
where A: UnwindSafe, E: UnwindSafe,

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, 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.
Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,