endian_type::types

Type Alias usize_le

source
pub type usize_le = LittleEndian<usize>;

Aliased Type§

struct usize_le(/* private fields */);

Implementations

source§

impl<T> LittleEndian<T>
where T: Sized + Copy,

source

pub fn from_bytes(bytes: &[u8]) -> Self

source

pub fn as_bytes(&self) -> &[u8]

Trait Implementations

source§

impl<T> BitAnd for LittleEndian<T>
where T: BitAnd,

source§

type Output = LittleEndian<<T as BitAnd>::Output>

The resulting type after applying the & operator.
source§

fn bitand(self, other: Self) -> Self::Output

Performs the & operation. Read more
source§

impl<T> BitOr for LittleEndian<T>
where T: BitOr,

source§

type Output = LittleEndian<<T as BitOr>::Output>

The resulting type after applying the | operator.
source§

fn bitor(self, other: Self) -> Self::Output

Performs the | operation. Read more
source§

impl<T> BitXor for LittleEndian<T>
where T: BitXor,

source§

type Output = LittleEndian<<T as BitXor>::Output>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl<T: Clone> Clone for LittleEndian<T>

source§

fn clone(&self) -> LittleEndian<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for LittleEndian<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<BigEndian<usize>> for LittleEndian<usize>

source§

fn from(data: BigEndian<usize>) -> Self

Converts to this type from the input type.
source§

impl From<usize> for LittleEndian<usize>

source§

fn from(data: usize) -> Self

Converts to this type from the input type.
source§

impl<T: Hash> Hash for LittleEndian<T>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Into<usize> for LittleEndian<usize>

source§

fn into(self) -> usize

Converts this type into the (usually inferred) input type.
source§

impl<T: Ord> Ord for LittleEndian<T>

source§

fn cmp(&self, other: &LittleEndian<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq> PartialEq for LittleEndian<T>

source§

fn eq(&self, other: &LittleEndian<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd> PartialOrd for LittleEndian<T>

source§

fn partial_cmp(&self, other: &LittleEndian<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T: Copy> Copy for LittleEndian<T>

source§

impl<T> Endian<T> for LittleEndian<T>

source§

impl<T: Eq> Eq for LittleEndian<T>

source§

impl<T> StructuralPartialEq for LittleEndian<T>