Trait pod::endian::EndianConvert [] [src]

pub trait EndianConvert: Aligned {
    fn from<B: ByteOrder>(&Self::Unaligned) -> Self;
    fn to<B: ByteOrder>(self) -> Self::Unaligned;
}

Describes a value that can be converted to and from a specified byte order.

Required Methods

fn from<B: ByteOrder>(&Self::Unaligned) -> Self

Converts a value from B

fn to<B: ByteOrder>(self) -> Self::Unaligned

Converts a value to B

Implementors