[][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: Eq> Eq for StaticEndianness<E>
[src]

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

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

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

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

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

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

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

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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