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

Convert self to a big-endian value

Convert self to a little-endian value

Convert a big-endian value to the target endianness

Convert a little-endian value to the target endiannes

Implementations on Foreign Types

impl EndianConvert for u8
[src]

[src]

[src]

[src]

[src]

impl EndianConvert for u16
[src]

[src]

[src]

[src]

[src]

impl EndianConvert for u32
[src]

[src]

[src]

[src]

[src]

impl EndianConvert for u64
[src]

[src]

[src]

[src]

[src]

Implementors