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