[][src]Struct byteordered::StaticEndianness

pub struct StaticEndianness<E>(_);

A data type representing a byte order known in compile time. Unlike the types provided in byteorder, this type can be constructed.

The parameter type E can be one of either byteorder::BigEndian or byteorder::LittleEndian.

Methods

impl<E> StaticEndianness<E>[src]

pub fn new() -> Self[src]

Constructor for a static endianness.

impl StaticEndianness<NativeEndian>[src]

pub fn native() -> Self[src]

Constructor for native endianness.

Trait Implementations

impl<E> Endian for StaticEndianness<E> where
    E: HasOpposite,
    E: StaticNative,
    E: ByteOrder
[src]

type Opposite = StaticEndianness<E::Opposite>

A type which can represent a byte order that is opposite to this one.

impl From<StaticEndianness<LittleEndian>> for Endianness[src]

impl From<StaticEndianness<BigEndian>> for Endianness[src]

impl<E: Clone> Clone for StaticEndianness<E>[src]

impl<E: Copy> Copy for StaticEndianness<E>[src]

impl<E> Default for StaticEndianness<E>[src]

impl<E: Eq> Eq for StaticEndianness<E>[src]

impl<E: Ord> Ord for StaticEndianness<E>[src]

impl<E: PartialEq> PartialEq<StaticEndianness<E>> for StaticEndianness<E>[src]

impl PartialEq<StaticEndianness<LittleEndian>> for StaticEndianness<BigEndian>[src]

impl PartialEq<StaticEndianness<BigEndian>> for StaticEndianness<LittleEndian>[src]

impl PartialEq<Endianness> for StaticEndianness<BigEndian>[src]

impl PartialEq<Endianness> for StaticEndianness<LittleEndian>[src]

impl PartialEq<StaticEndianness<BigEndian>> for Endianness[src]

impl PartialEq<StaticEndianness<LittleEndian>> for Endianness[src]

impl<E: PartialOrd> PartialOrd<StaticEndianness<E>> for StaticEndianness<E>[src]

impl<E: Debug> Debug for StaticEndianness<E>[src]

impl<E: Hash> Hash for StaticEndianness<E>[src]

impl<E> StructuralPartialEq for StaticEndianness<E>[src]

impl<E> StructuralEq for StaticEndianness<E>[src]

Auto Trait Implementations

impl<E> Send for StaticEndianness<E> where
    E: Send

impl<E> Sync for StaticEndianness<E> where
    E: Sync

impl<E> Unpin for StaticEndianness<E> where
    E: Unpin

impl<E> UnwindSafe for StaticEndianness<E> where
    E: UnwindSafe

impl<E> RefUnwindSafe for StaticEndianness<E> where
    E: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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.

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

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

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