Struct endian_type::BigEndian
[−]
[src]
pub struct BigEndian<T>(_);
Big endian byte order
Most significant byte first
Methods
impl<T> BigEndian<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
Trait Implementations
impl<T: Copy> Copy for BigEndian<T>
[src]
impl<T: Clone> Clone for BigEndian<T>
[src]
fn clone(&self) -> BigEndian<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for BigEndian<T>
[src]
impl<T: Eq> Eq for BigEndian<T>
[src]
impl<T: PartialEq> PartialEq for BigEndian<T>
[src]
fn eq(&self, __arg_0: &BigEndian<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BigEndian<T>) -> bool
This method tests for !=
.
impl<T: Hash> Hash for BigEndian<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Ord> Ord for BigEndian<T>
[src]
fn cmp(&self, __arg_0: &BigEndian<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<T: PartialOrd> PartialOrd for BigEndian<T>
[src]
fn partial_cmp(&self, __arg_0: &BigEndian<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &BigEndian<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &BigEndian<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &BigEndian<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &BigEndian<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> Endian<T> for BigEndian<T>
[src]
impl<T> BitAnd for BigEndian<T> where
T: BitAnd,
[src]
T: BitAnd,
type Output = BigEndian<<T as BitAnd>::Output>
The resulting type after applying the &
operator
fn bitand(self, other: Self) -> Self::Output
The method for the &
operator
impl<T> BitOr for BigEndian<T> where
T: BitOr,
[src]
T: BitOr,
type Output = BigEndian<<T as BitOr>::Output>
The resulting type after applying the |
operator
fn bitor(self, other: Self) -> Self::Output
The method for the |
operator
impl<T> BitXor for BigEndian<T> where
T: BitXor,
[src]
T: BitXor,
type Output = BigEndian<<T as BitXor>::Output>
The resulting type after applying the ^
operator
fn bitxor(self, other: Self) -> Self::Output
The method for the ^
operator
impl Into<u16> for BigEndian<u16>
[src]
impl From<u16> for BigEndian<u16>
[src]
impl From<LittleEndian<u16>> for BigEndian<u16>
[src]
fn from(data: LittleEndian<u16>) -> Self
Performs the conversion.
impl Into<u32> for BigEndian<u32>
[src]
impl From<u32> for BigEndian<u32>
[src]
impl From<LittleEndian<u32>> for BigEndian<u32>
[src]
fn from(data: LittleEndian<u32>) -> Self
Performs the conversion.
impl Into<u64> for BigEndian<u64>
[src]
impl From<u64> for BigEndian<u64>
[src]
impl From<LittleEndian<u64>> for BigEndian<u64>
[src]
fn from(data: LittleEndian<u64>) -> Self
Performs the conversion.
impl Into<usize> for BigEndian<usize>
[src]
impl From<usize> for BigEndian<usize>
[src]
impl From<LittleEndian<usize>> for BigEndian<usize>
[src]
fn from(data: LittleEndian<usize>) -> Self
Performs the conversion.
impl Into<i16> for BigEndian<i16>
[src]
impl From<i16> for BigEndian<i16>
[src]
impl From<LittleEndian<i16>> for BigEndian<i16>
[src]
fn from(data: LittleEndian<i16>) -> Self
Performs the conversion.
impl Into<i32> for BigEndian<i32>
[src]
impl From<i32> for BigEndian<i32>
[src]
impl From<LittleEndian<i32>> for BigEndian<i32>
[src]
fn from(data: LittleEndian<i32>) -> Self
Performs the conversion.
impl Into<i64> for BigEndian<i64>
[src]
impl From<i64> for BigEndian<i64>
[src]
impl From<LittleEndian<i64>> for BigEndian<i64>
[src]
fn from(data: LittleEndian<i64>) -> Self
Performs the conversion.
impl Into<isize> for BigEndian<isize>
[src]
impl From<isize> for BigEndian<isize>
[src]
impl From<LittleEndian<isize>> for BigEndian<isize>
[src]
fn from(data: LittleEndian<isize>) -> Self
Performs the conversion.