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 u16impl EndianConvert for i16impl EndianConvert for i32impl EndianConvert for u32impl EndianConvert for i64impl EndianConvert for u64impl EndianConvert for f32impl EndianConvert for f64impl EndianConvert for bool