Struct object::endian::U64Bytes [−][src]
An unaligned u64
value with an externally specified endianness of type E
.
Implementations
impl<E: Endian> U64Bytes<E>
[src]
pub fn new(e: E, n: u64) -> Self
[src]
Construct a new value given a native endian value.
pub fn get(self, e: E) -> u64
[src]
Return the value as a native endian value.
pub fn set(&mut self, e: E, n: u64)
[src]
Set the value given a native endian value.
Trait Implementations
impl<E: Clone + Endian> Clone for U64Bytes<E>
[src]
fn clone(&self) -> U64Bytes<E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Copy + Endian> Copy for U64Bytes<E>
[src]
impl<E: Endian> Debug for U64Bytes<E>
[src]
impl<E: Default + Endian> Default for U64Bytes<E>
[src]
impl<E: Eq + Endian> Eq for U64Bytes<E>
[src]
impl<E: Hash + Endian> Hash for U64Bytes<E>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<E: Ord + Endian> Ord for U64Bytes<E>
[src]
fn cmp(&self, other: &U64Bytes<E>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<E: PartialEq + Endian> PartialEq<U64Bytes<E>> for U64Bytes<E>
[src]
impl<E: PartialOrd + Endian> PartialOrd<U64Bytes<E>> for U64Bytes<E>
[src]
fn partial_cmp(&self, other: &U64Bytes<E>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<E: Endian> Pod for U64Bytes<E>
[src]
impl<E: Endian> StructuralEq for U64Bytes<E>
[src]
impl<E: Endian> StructuralPartialEq for U64Bytes<E>
[src]
Auto Trait Implementations
impl<E> Send for U64Bytes<E> where
E: Send,
E: Send,
impl<E> Sync for U64Bytes<E> where
E: Sync,
E: Sync,
impl<E> Unpin for U64Bytes<E> where
E: Unpin,
E: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,