pub struct BigEndian<T>(/* private fields */);
Expand description
Big endian byte order.
Most significant byte first.
Implementations§
Source§impl<T> BigEndian<T>
impl<T> BigEndian<T>
pub const unsafe fn from_byte_slice(bytes: &[u8]) -> BigEndian<T>
pub fn as_byte_slice(&self) -> &[u8]
pub fn as_byte_slice_mut(&mut self) -> &mut [u8]
Source§impl BigEndian<u16>
impl BigEndian<u16>
Source§impl BigEndian<u32>
impl BigEndian<u32>
Source§impl BigEndian<u64>
impl BigEndian<u64>
Source§impl BigEndian<u128>
impl BigEndian<u128>
Source§impl BigEndian<usize>
impl BigEndian<usize>
Source§impl BigEndian<i16>
impl BigEndian<i16>
Source§impl BigEndian<i32>
impl BigEndian<i32>
Source§impl BigEndian<i64>
impl BigEndian<i64>
Source§impl BigEndian<i128>
impl BigEndian<i128>
Trait Implementations§
Source§impl From<LittleEndian<i128>> for BigEndian<i128>
impl From<LittleEndian<i128>> for BigEndian<i128>
Source§fn from(data: LittleEndian<i128>) -> Self
fn from(data: LittleEndian<i128>) -> Self
Converts to this type from the input type.
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<u128>> for BigEndian<u128>
impl From<LittleEndian<u128>> for BigEndian<u128>
Source§fn from(data: LittleEndian<u128>) -> Self
fn from(data: LittleEndian<u128>) -> 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: PartialOrd> PartialOrd for BigEndian<T>
impl<T: PartialOrd> PartialOrd for BigEndian<T>
impl<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