Type Alias u64_le

Source
pub type u64_le = U64<LittleEndian>;

Aliased Type§

struct u64_le(/* private fields */);

Implementations

§

impl<O> U64<O>

pub const ZERO: U64<O>

The value zero.

This constant should be preferred to constructing a new value using new, as new may perform an endianness swap depending on the endianness and platform.

pub const MAX_VALUE: U64<O>

The maximum value.

This constant should be preferred to constructing a new value using new, as new may perform an endianness swap depending on the endianness O and the endianness of the platform.

pub const fn from_bytes(bytes: [u8; 8]) -> U64<O>

Constructs a new value from bytes which are already in O byte order.

pub const fn to_bytes(self) -> [u8; 8]

Extracts the bytes of self without swapping the byte order.

The returned bytes will be in O byte order.

§

impl<O> U64<O>
where O: ByteOrder,

pub const fn new(n: u64) -> U64<O>

Constructs a new value, possibly performing an endianness swap to guarantee that the returned value has endianness O.

pub const fn get(self) -> u64

Returns the value as a primitive type, possibly performing an endianness swap to guarantee that the return value has the endianness of the native platform.

pub fn set(&mut self, n: u64)

Updates the value in place as a primitive type, possibly performing an endianness swap to guarantee that the stored value has the endianness O.

Trait Implementations

§

impl<O> Add<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the + operator.
§

fn add(self, rhs: u64) -> U64<O>

Performs the + operation. Read more
§

impl<O> Add for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the + operator.
§

fn add(self, rhs: U64<O>) -> U64<O>

Performs the + operation. Read more
§

impl<O> AddAssign<u64> for U64<O>
where O: ByteOrder,

§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
§

impl<O> AddAssign for U64<O>
where O: ByteOrder,

§

fn add_assign(&mut self, rhs: U64<O>)

Performs the += operation. Read more
§

impl<O> AsMut<[u8; 8]> for U64<O>

§

fn as_mut(&mut self) -> &mut [u8; 8]

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl<O> AsRef<[u8; 8]> for U64<O>

§

fn as_ref(&self) -> &[u8; 8]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<O> Binary for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> BitAnd<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the & operator.
§

fn bitand(self, rhs: u64) -> U64<O>

Performs the & operation. Read more
§

impl<O> BitAnd for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the & operator.
§

fn bitand(self, rhs: U64<O>) -> U64<O>

Performs the & operation. Read more
§

impl<O> BitAndAssign<u64> for U64<O>
where O: ByteOrder,

§

fn bitand_assign(&mut self, rhs: u64)

Performs the &= operation. Read more
§

impl<O> BitAndAssign for U64<O>
where O: ByteOrder,

§

fn bitand_assign(&mut self, rhs: U64<O>)

Performs the &= operation. Read more
§

impl<O> BitOr<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the | operator.
§

fn bitor(self, rhs: u64) -> U64<O>

Performs the | operation. Read more
§

impl<O> BitOr for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the | operator.
§

fn bitor(self, rhs: U64<O>) -> U64<O>

Performs the | operation. Read more
§

impl<O> BitOrAssign<u64> for U64<O>
where O: ByteOrder,

§

fn bitor_assign(&mut self, rhs: u64)

Performs the |= operation. Read more
§

impl<O> BitOrAssign for U64<O>
where O: ByteOrder,

§

fn bitor_assign(&mut self, rhs: U64<O>)

Performs the |= operation. Read more
§

impl<O> BitXor<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the ^ operator.
§

fn bitxor(self, rhs: u64) -> U64<O>

Performs the ^ operation. Read more
§

impl<O> BitXor for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the ^ operator.
§

fn bitxor(self, rhs: U64<O>) -> U64<O>

Performs the ^ operation. Read more
§

impl<O> BitXorAssign<u64> for U64<O>
where O: ByteOrder,

§

fn bitxor_assign(&mut self, rhs: u64)

Performs the ^= operation. Read more
§

impl<O> BitXorAssign for U64<O>
where O: ByteOrder,

§

fn bitxor_assign(&mut self, rhs: U64<O>)

Performs the ^= operation. Read more
§

impl<O> Clone for U64<O>
where O: Clone,

§

fn clone(&self) -> U64<O>

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
§

impl<O> Debug for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> Default for U64<O>

§

fn default() -> U64<O>

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

impl<O> Display for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> Div<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the / operator.
§

fn div(self, rhs: u64) -> U64<O>

Performs the / operation. Read more
§

impl<O> Div for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the / operator.
§

fn div(self, rhs: U64<O>) -> U64<O>

Performs the / operation. Read more
§

impl<O> DivAssign<u64> for U64<O>
where O: ByteOrder,

§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
§

impl<O> DivAssign for U64<O>
where O: ByteOrder,

§

fn div_assign(&mut self, rhs: U64<O>)

Performs the /= operation. Read more
§

impl<O> From<[u8; 8]> for U64<O>
where O: ByteOrder,

§

fn from(bytes: [u8; 8]) -> U64<O>

Converts to this type from the input type.
§

impl<O, P> From<U16<O>> for U64<P>
where O: ByteOrder, P: ByteOrder,

§

fn from(x: U16<O>) -> U64<P>

Converts to this type from the input type.
§

impl<O, P> From<U32<O>> for U64<P>
where O: ByteOrder, P: ByteOrder,

§

fn from(x: U32<O>) -> U64<P>

Converts to this type from the input type.
§

impl<O> From<u64> for U64<O>
where O: ByteOrder,

§

fn from(x: u64) -> U64<O>

Converts to this type from the input type.
§

impl<O> FromBytes for U64<O>
where [u8; 8]: FromBytes, PhantomData<O>: FromBytes,

§

fn ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the given source as a &Self. Read more
§

fn ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the prefix of the given source as a &Self without copying. Read more
§

fn ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: Immutable + KnownLayout,

Interprets the suffix of the given bytes as a &Self. Read more
§

fn mut_from_bytes( source: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the given source as a &mut Self. Read more
§

fn mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the prefix of the given source as a &mut Self without copying. Read more
§

fn mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the suffix of the given source as a &mut Self without copying. Read more
§

fn ref_from_bytes_with_elems( source: &[u8], count: usize, ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the given source as a &Self with a DST length equal to count. Read more
§

fn ref_from_prefix_with_elems( source: &[u8], count: usize, ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the prefix of the given source as a DST &Self with length equal to count. Read more
§

fn ref_from_suffix_with_elems( source: &[u8], count: usize, ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the suffix of the given source as a DST &Self with length equal to count. Read more
§

fn mut_from_bytes_with_elems( source: &mut [u8], count: usize, ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the given source as a &mut Self with a DST length equal to count. Read more
§

fn mut_from_prefix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize>,

Interprets the prefix of the given source as a &mut Self with DST length equal to count. Read more
§

fn mut_from_suffix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize>,

Interprets the suffix of the given source as a &mut Self with DST length equal to count. Read more
§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
§

impl<O> FromZeros for U64<O>
where [u8; 8]: FromZeros, PhantomData<O>: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
§

fn new_box_zeroed() -> Result<Box<Self>, AllocError>
where Self: Sized,

Creates a Box<Self> from zeroed bytes. Read more
§

fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>
where Self: KnownLayout<PointerMetadata = usize>,

Creates a Box<[Self]> (a boxed slice) from zeroed bytes. Read more
§

fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>
where Self: Sized,

Creates a Vec<Self> from zeroed bytes. Read more
§

fn extend_vec_zeroed( v: &mut Vec<Self>, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Extends a Vec<Self> by pushing additional new items onto the end of the vector. The new items are initialized with zeros.
§

fn insert_vec_zeroed( v: &mut Vec<Self>, position: usize, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Inserts additional new items into Vec<Self> at position. The new items are initialized with zeros. Read more
§

impl<O> Hash for U64<O>
where O: Hash,

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

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
§

impl<O> IntoBytes for U64<O>
where [u8; 8]: IntoBytes, PhantomData<O>: IntoBytes,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn as_mut_bytes(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
§

impl<O> KnownLayout for U64<O>
where U64<O>: Sized,

§

type PointerMetadata = ()

The type of metadata stored in a pointer to Self. Read more
§

impl<O> LowerHex for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> Mul<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the * operator.
§

fn mul(self, rhs: u64) -> U64<O>

Performs the * operation. Read more
§

impl<O> Mul for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the * operator.
§

fn mul(self, rhs: U64<O>) -> U64<O>

Performs the * operation. Read more
§

impl<O> MulAssign<u64> for U64<O>
where O: ByteOrder,

§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
§

impl<O> MulAssign for U64<O>
where O: ByteOrder,

§

fn mul_assign(&mut self, rhs: U64<O>)

Performs the *= operation. Read more
§

impl<O> Not for U64<O>

§

type Output = U64<O>

The resulting type after applying the ! operator.
§

fn not(self) -> U64<O>

Performs the unary ! operation. Read more
§

impl<O> Octal for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> Ord for U64<O>
where O: ByteOrder,

§

fn cmp(&self, other: &U64<O>) -> 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
§

impl<O> PartialEq<[u8; 8]> for U64<O>

§

fn eq(&self, other: &[u8; 8]) -> 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.
§

impl<O> PartialEq<u64> for U64<O>
where O: ByteOrder,

§

fn eq(&self, other: &u64) -> 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.
§

impl<O> PartialEq for U64<O>
where O: PartialEq,

§

fn eq(&self, other: &U64<O>) -> 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.
§

impl<O> PartialOrd<u64> for U64<O>
where O: ByteOrder,

§

fn partial_cmp(&self, other: &u64) -> 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
§

impl<O> PartialOrd for U64<O>
where O: ByteOrder,

§

fn partial_cmp(&self, other: &U64<O>) -> 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
§

impl<O> Rem<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the % operator.
§

fn rem(self, rhs: u64) -> U64<O>

Performs the % operation. Read more
§

impl<O> Rem for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the % operator.
§

fn rem(self, rhs: U64<O>) -> U64<O>

Performs the % operation. Read more
§

impl<O> RemAssign<u64> for U64<O>
where O: ByteOrder,

§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
§

impl<O> RemAssign for U64<O>
where O: ByteOrder,

§

fn rem_assign(&mut self, rhs: U64<O>)

Performs the %= operation. Read more
§

impl<O> Shl<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the << operator.
§

fn shl(self, rhs: u64) -> U64<O>

Performs the << operation. Read more
§

impl<O> Shl for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the << operator.
§

fn shl(self, rhs: U64<O>) -> U64<O>

Performs the << operation. Read more
§

impl<O> ShlAssign<u64> for U64<O>
where O: ByteOrder,

§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
§

impl<O> ShlAssign for U64<O>
where O: ByteOrder,

§

fn shl_assign(&mut self, rhs: U64<O>)

Performs the <<= operation. Read more
§

impl<O> Shr<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: u64) -> U64<O>

Performs the >> operation. Read more
§

impl<O> Shr for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: U64<O>) -> U64<O>

Performs the >> operation. Read more
§

impl<O> ShrAssign<u64> for U64<O>
where O: ByteOrder,

§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
§

impl<O> ShrAssign for U64<O>
where O: ByteOrder,

§

fn shr_assign(&mut self, rhs: U64<O>)

Performs the >>= operation. Read more
§

impl<O> Sub<u64> for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the - operator.
§

fn sub(self, rhs: u64) -> U64<O>

Performs the - operation. Read more
§

impl<O> Sub for U64<O>
where O: ByteOrder,

§

type Output = U64<O>

The resulting type after applying the - operator.
§

fn sub(self, rhs: U64<O>) -> U64<O>

Performs the - operation. Read more
§

impl<O> SubAssign<u64> for U64<O>
where O: ByteOrder,

§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
§

impl<O> SubAssign for U64<O>
where O: ByteOrder,

§

fn sub_assign(&mut self, rhs: U64<O>)

Performs the -= operation. Read more
§

impl<O, P> TryFrom<U128<P>> for U64<O>
where O: ByteOrder, P: ByteOrder,

§

type Error = TryFromIntError

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

fn try_from(x: U128<P>) -> Result<U64<O>, TryFromIntError>

Performs the conversion.
§

impl<O> TryFrom<u128> for U64<O>
where O: ByteOrder,

§

type Error = TryFromIntError

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

fn try_from(x: u128) -> Result<U64<O>, TryFromIntError>

Performs the conversion.
§

impl<O> TryFromBytes for U64<O>
where [u8; 8]: TryFromBytes, PhantomData<O>: TryFromBytes,

§

fn try_ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the given source as a &Self. Read more
§

fn try_ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the prefix of the given source as a &Self. Read more
§

fn try_ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the suffix of the given source as a &Self. Read more
§

fn try_mut_from_bytes( bytes: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the given source as a &mut Self without copying. Read more
§

fn try_mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self. Read more
§

fn try_mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self. Read more
§

fn try_ref_from_bytes_with_elems( source: &[u8], count: usize, ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the given source as a &Self with a DST length equal to count. Read more
§

fn try_ref_from_prefix_with_elems( source: &[u8], count: usize, ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the prefix of the given source as a &Self with a DST length equal to count. Read more
§

fn try_ref_from_suffix_with_elems( source: &[u8], count: usize, ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the suffix of the given source as a &Self with a DST length equal to count. Read more
§

fn try_mut_from_bytes_with_elems( source: &mut [u8], count: usize, ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the given source as a &mut Self with a DST length equal to count. Read more
§

fn try_mut_from_prefix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self with a DST length equal to count. Read more
§

fn try_mut_from_suffix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self with a DST length equal to count. Read more
§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
§

impl<O> UpperHex for U64<O>
where O: ByteOrder,

§

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

Formats the value using the given formatter. Read more
§

impl<O> Copy for U64<O>
where O: Copy,

§

impl<O> Eq for U64<O>
where O: Eq,

§

impl<O> Immutable for U64<O>
where [u8; 8]: Immutable, PhantomData<O>: Immutable,

§

impl<O> StructuralPartialEq for U64<O>

§

impl<O> Unaligned for U64<O>
where [u8; 8]: Unaligned, PhantomData<O>: Unaligned,