Struct U32Bytes
struct U32Bytes<E: Endian>(_, _)
An unaligned u32 value with an externally specified endianness of type E.
Implementations
impl<E: Endian> U32Bytes<E>
const fn from_bytes(n: [u8; 4]) -> SelfConstruct a new value given bytes that already have the required endianness.
fn new(e: E, n: u32) -> SelfConstruct a new value given a native endian value.
fn get(self: Self, e: E) -> u32Return the value as a native endian value.
fn set(self: &mut Self, e: E, n: u32)Set the value given a native endian value.
impl<E> Freeze for U32Bytes<E>
impl<E> RefUnwindSafe for U32Bytes<E>
impl<E> Send for U32Bytes<E>
impl<E> Sync for U32Bytes<E>
impl<E> Unpin for U32Bytes<E>
impl<E> UnwindSafe for U32Bytes<E>
impl<E: $crate::clone::Clone + Endian> Clone for U32Bytes<E>
fn clone(self: &Self) -> U32Bytes<E>
impl<E: $crate::cmp::Eq + Endian> Eq for U32Bytes<E>
impl<E: $crate::cmp::Ord + Endian> Ord for U32Bytes<E>
fn cmp(self: &Self, other: &U32Bytes<E>) -> $crate::cmp::Ordering
impl<E: $crate::cmp::PartialEq + Endian> PartialEq for U32Bytes<E>
fn eq(self: &Self, other: &U32Bytes<E>) -> bool
impl<E: $crate::cmp::PartialOrd + Endian> PartialOrd for U32Bytes<E>
fn partial_cmp(self: &Self, other: &U32Bytes<E>) -> $crate::option::Option<$crate::cmp::Ordering>
impl<E: $crate::default::Default + Endian> Default for U32Bytes<E>
fn default() -> U32Bytes<E>
impl<E: $crate::hash::Hash + Endian> Hash for U32Bytes<E>
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl<E: $crate::marker::Copy + Endian> Copy for U32Bytes<E>
impl<E: Endian> Debug for U32Bytes<E>
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl<E: Endian> Pod for U32Bytes<E>
impl<E: Endian> StructuralPartialEq for U32Bytes<E>
impl<T> Any for U32Bytes<E>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for U32Bytes<E>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for U32Bytes<E>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for U32Bytes<E>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for U32Bytes<E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for U32Bytes<E>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for U32Bytes<E>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for U32Bytes<E>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for U32Bytes<E>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>