Trait podio::EndianConvert
[−]
[src]
pub trait EndianConvert { fn to_be(self) -> Self; fn to_le(self) -> Self; fn from_be(x: Self) -> Self; fn from_le(x: Self) -> Self; }
Generic trait for endian conversions on integers
Required Methods
fn to_be(self) -> Self
Convert self to a big-endian value
fn to_le(self) -> Self
Convert self to a little-endian value
fn from_be(x: Self) -> Self
Convert a big-endian value to the target endianness
fn from_le(x: Self) -> Self
Convert a little-endian value to the target endiannes