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
impl EndianConvert for u16
impl EndianConvert for i16
impl EndianConvert for i32
impl EndianConvert for u32
impl EndianConvert for i64
impl EndianConvert for u64
impl EndianConvert for f32
impl EndianConvert for f64
impl EndianConvert for bool