Struct RawBytesULE
struct RawBytesULE<N: usize>(1540)
A u8 array of little-endian data with infallible conversions to and from &[u8].
Implementations
impl RawBytesULE<16>
const fn from_signed(v: i128) -> Self
impl RawBytesULE<16>
const fn from_unsigned(v: u128) -> Self
impl RawBytesULE<16>
fn as_unsigned_int(self: &Self) -> u128Gets this
RawBytesULEas au128. This is equivalent to calling [AsULE::from_unaligned()] on the appropriately sized type.const fn from_aligned(value: u128) -> SelfConverts a
u128to aRawBytesULE. This is equivalent to calling [AsULE::to_unaligned()] on the appropriately sized type.const fn from_array<N: usize>(arr: [u128; N]) -> [Self; N]Convert an array of
u128to an array ofRawBytesULE < 16 >.
impl RawBytesULE<2>
fn as_unsigned_int(self: &Self) -> u16Gets this
RawBytesULEas au16. This is equivalent to calling [AsULE::from_unaligned()] on the appropriately sized type.const fn from_aligned(value: u16) -> SelfConverts a
u16to aRawBytesULE. This is equivalent to calling [AsULE::to_unaligned()] on the appropriately sized type.const fn from_array<N: usize>(arr: [u16; N]) -> [Self; N]Convert an array of
u16to an array ofRawBytesULE < 2 >.
impl RawBytesULE<2>
const fn from_signed(v: i16) -> Self
impl RawBytesULE<2>
const fn from_unsigned(v: u16) -> Self
impl RawBytesULE<4>
fn as_unsigned_int(self: &Self) -> u32Gets this
RawBytesULEas au32. This is equivalent to calling [AsULE::from_unaligned()] on the appropriately sized type.const fn from_aligned(value: u32) -> SelfConverts a
u32to aRawBytesULE. This is equivalent to calling [AsULE::to_unaligned()] on the appropriately sized type.const fn from_array<N: usize>(arr: [u32; N]) -> [Self; N]Convert an array of
u32to an array ofRawBytesULE < 4 >.
impl RawBytesULE<4>
const fn from_signed(v: i32) -> Self
impl RawBytesULE<4>
const fn from_unsigned(v: u32) -> Self
impl RawBytesULE<8>
const fn from_signed(v: i64) -> Self
impl RawBytesULE<8>
const fn from_unsigned(v: u64) -> Self
impl RawBytesULE<8>
fn as_unsigned_int(self: &Self) -> u64Gets this
RawBytesULEas au64. This is equivalent to calling [AsULE::from_unaligned()] on the appropriately sized type.const fn from_aligned(value: u64) -> SelfConverts a
u64to aRawBytesULE. This is equivalent to calling [AsULE::to_unaligned()] on the appropriately sized type.const fn from_array<N: usize>(arr: [u64; N]) -> [Self; N]Convert an array of
u64to an array ofRawBytesULE < 8 >.
impl<N: usize> RawBytesULE<N>
fn as_bytes(self: &Self) -> &[u8]fn from_bytes_unchecked_mut(bytes: &mut [u8]) -> &mut [Self]
impl From for RawBytesULE<16>
fn from(value: i128) -> Self
impl From for RawBytesULE<16>
fn from(value: u128) -> Self
impl From for RawBytesULE<2>
fn from(value: i16) -> Self
impl From for RawBytesULE<2>
fn from(value: u16) -> Self
impl From for RawBytesULE<4>
fn from(value: i32) -> Self
impl From for RawBytesULE<4>
fn from(value: u32) -> Self
impl From for RawBytesULE<8>
fn from(value: i64) -> Self
impl From for RawBytesULE<8>
fn from(value: u64) -> Self
impl<N: usize> Clone for RawBytesULE<N>
fn clone(self: &Self) -> RawBytesULE<N>
impl<N: usize> Copy for RawBytesULE<N>
impl<N: usize> Debug for RawBytesULE<N>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<N: usize> Eq for RawBytesULE<N>
impl<N: usize> Freeze for RawBytesULE<N>
impl<N: usize> From for RawBytesULE<N>
fn from(le_bytes: [u8; N]) -> Self
impl<N: usize> Hash for RawBytesULE<N>
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl<N: usize> Ord for RawBytesULE<N>
fn cmp(self: &Self, other: &RawBytesULE<N>) -> Ordering
impl<N: usize> PartialEq for RawBytesULE<N>
fn eq(self: &Self, other: &RawBytesULE<N>) -> bool
impl<N: usize> PartialOrd for RawBytesULE<N>
fn partial_cmp(self: &Self, other: &RawBytesULE<N>) -> Option<Ordering>
impl<N: usize> RefUnwindSafe for RawBytesULE<N>
impl<N: usize> Send for RawBytesULE<N>
impl<N: usize> StructuralPartialEq for RawBytesULE<N>
impl<N: usize> Sync for RawBytesULE<N>
impl<N: usize> ULE for RawBytesULE<N>
fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
impl<N: usize> Unpin for RawBytesULE<N>
impl<N: usize> UnsafeUnpin for RawBytesULE<N>
impl<N: usize> UnwindSafe for RawBytesULE<N>
impl<T> Any for RawBytesULE<N>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for RawBytesULE<N>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for RawBytesULE<N>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for RawBytesULE<N>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> ErasedDestructor for RawBytesULE<N>
impl<T> From for RawBytesULE<N>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for RawBytesULE<N>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for RawBytesULE<N>
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 RawBytesULE<N>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for RawBytesULE<N>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>