Enum byteorder::LittleEndian[][src]

pub enum LittleEndian {}

Defines little-endian serialization.

Note that this type has no value constructor. It is used purely at the type level.

Examples

Write and read u32 numbers in little endian order:

use byteorder::{ByteOrder, LittleEndian};

let mut buf = [0; 4];
LittleEndian::write_u32(&mut buf, 1_000_000);
assert_eq!(1_000_000, LittleEndian::read_u32(&buf));

Trait Implementations

impl ByteOrder for LittleEndian[src]

impl Clone for LittleEndian[src]

impl Copy for LittleEndian[src]

impl Debug for LittleEndian[src]

impl Default for LittleEndian[src]

impl Eq for LittleEndian[src]

impl Hash for LittleEndian[src]

impl Ord for LittleEndian[src]

impl PartialEq<LittleEndian> for LittleEndian[src]

impl PartialOrd<LittleEndian> for LittleEndian[src]

impl StructuralEq for LittleEndian[src]

impl StructuralPartialEq for LittleEndian[src]

Auto Trait Implementations

impl Send for LittleEndian

impl Sync for LittleEndian

impl Unpin for LittleEndian

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.