Struct endian_type::LittleEndian
source · pub struct LittleEndian<T>(/* private fields */);
Expand description
Little endian byte order
Least significant byte first
Implementations§
Trait Implementations§
source§impl<T> BitAnd for LittleEndian<T>where
T: BitAnd,
impl<T> BitAnd for LittleEndian<T>where
T: BitAnd,
source§impl<T> BitOr for LittleEndian<T>where
T: BitOr,
impl<T> BitOr for LittleEndian<T>where
T: BitOr,
source§impl<T> BitXor for LittleEndian<T>where
T: BitXor,
impl<T> BitXor for LittleEndian<T>where
T: BitXor,
source§impl<T: Clone> Clone for LittleEndian<T>
impl<T: Clone> Clone for LittleEndian<T>
source§fn clone(&self) -> LittleEndian<T>
fn clone(&self) -> LittleEndian<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for LittleEndian<T>
impl<T: Debug> Debug for LittleEndian<T>
source§impl From<LittleEndian<i16>> for BigEndian<i16>
impl From<LittleEndian<i16>> for BigEndian<i16>
source§fn from(data: LittleEndian<i16>) -> Self
fn from(data: LittleEndian<i16>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<i32>> for BigEndian<i32>
impl From<LittleEndian<i32>> for BigEndian<i32>
source§fn from(data: LittleEndian<i32>) -> Self
fn from(data: LittleEndian<i32>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<i64>> for BigEndian<i64>
impl From<LittleEndian<i64>> for BigEndian<i64>
source§fn from(data: LittleEndian<i64>) -> Self
fn from(data: LittleEndian<i64>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<isize>> for BigEndian<isize>
impl From<LittleEndian<isize>> for BigEndian<isize>
source§fn from(data: LittleEndian<isize>) -> Self
fn from(data: LittleEndian<isize>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<u16>> for BigEndian<u16>
impl From<LittleEndian<u16>> for BigEndian<u16>
source§fn from(data: LittleEndian<u16>) -> Self
fn from(data: LittleEndian<u16>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<u32>> for BigEndian<u32>
impl From<LittleEndian<u32>> for BigEndian<u32>
source§fn from(data: LittleEndian<u32>) -> Self
fn from(data: LittleEndian<u32>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<u64>> for BigEndian<u64>
impl From<LittleEndian<u64>> for BigEndian<u64>
source§fn from(data: LittleEndian<u64>) -> Self
fn from(data: LittleEndian<u64>) -> Self
Converts to this type from the input type.
source§impl From<LittleEndian<usize>> for BigEndian<usize>
impl From<LittleEndian<usize>> for BigEndian<usize>
source§fn from(data: LittleEndian<usize>) -> Self
fn from(data: LittleEndian<usize>) -> Self
Converts to this type from the input type.
source§impl<T: Hash> Hash for LittleEndian<T>
impl<T: Hash> Hash for LittleEndian<T>
source§impl<T: Ord> Ord for LittleEndian<T>
impl<T: Ord> Ord for LittleEndian<T>
source§fn cmp(&self, other: &LittleEndian<T>) -> Ordering
fn cmp(&self, other: &LittleEndian<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for LittleEndian<T>
impl<T: PartialEq> PartialEq for LittleEndian<T>
source§impl<T: PartialOrd> PartialOrd for LittleEndian<T>
impl<T: PartialOrd> PartialOrd for LittleEndian<T>
impl<T: Copy> Copy for LittleEndian<T>
impl<T> Endian<T> for LittleEndian<T>
impl<T: Eq> Eq for LittleEndian<T>
impl<T> StructuralPartialEq for LittleEndian<T>
Auto Trait Implementations§
impl<T> Freeze for LittleEndian<T>where
T: Freeze,
impl<T> RefUnwindSafe for LittleEndian<T>where
T: RefUnwindSafe,
impl<T> Send for LittleEndian<T>where
T: Send,
impl<T> Sync for LittleEndian<T>where
T: Sync,
impl<T> Unpin for LittleEndian<T>where
T: Unpin,
impl<T> UnwindSafe for LittleEndian<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)