Struct endian_type::BigEndian
source · pub struct BigEndian<T>(_);
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<BigEndian<T>> for BigEndian<T>
impl<T: PartialEq> PartialEq<BigEndian<T>> for BigEndian<T>
source§impl<T: PartialOrd> PartialOrd<BigEndian<T>> for BigEndian<T>
impl<T: PartialOrd> PartialOrd<BigEndian<T>> 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 more