Struct endian_type::BigEndian
source · pub struct BigEndian<T>(/* private fields */);
Expand description
Big endian byte order
Most significant byte first
Implementations§
Trait Implementations§
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: Ord> Ord for BigEndian<T>
impl<T: Ord> Ord for BigEndian<T>
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 BigEndian<T>
impl<T: PartialEq> PartialEq for BigEndian<T>
source§impl<T: PartialOrd> PartialOrd for BigEndian<T>
impl<T: PartialOrd> PartialOrd for BigEndian<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for BigEndian<T>
impl<T> Endian<T> for BigEndian<T>
impl<T: Eq> Eq for BigEndian<T>
impl<T> StructuralPartialEq for BigEndian<T>
Auto Trait Implementations§
impl<T> Freeze for BigEndian<T>where
T: Freeze,
impl<T> RefUnwindSafe for BigEndian<T>where
T: RefUnwindSafe,
impl<T> Send for BigEndian<T>where
T: Send,
impl<T> Sync for BigEndian<T>where
T: Sync,
impl<T> Unpin for BigEndian<T>where
T: Unpin,
impl<T> UnwindSafe for BigEndian<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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)