[][src]Trait podio::EndianConvert

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

Loading content...

Implementations on Foreign Types

impl EndianConvert for u8[src]

impl EndianConvert for u16[src]

impl EndianConvert for u32[src]

impl EndianConvert for u64[src]

Loading content...

Implementors

Loading content...