[][src]Trait capnp::private::endian::Endian

pub trait Endian: Sized {
    fn get(&self) -> Self;
fn set(&mut self, value: Self); }

Something that can appear in a WireValue.

Required methods

fn get(&self) -> Self

Reads the value, swapping bytes on big-endian processors.

fn set(&mut self, value: Self)

Writes the value, swapping bytes on big-endian processors.

Loading content...

Implementations on Foreign Types

impl Endian for ()[src]

impl Endian for bool[src]

impl Endian for u8[src]

impl Endian for i8[src]

impl Endian for u16[src]

impl Endian for i16[src]

impl Endian for u32[src]

impl Endian for i32[src]

impl Endian for u64[src]

impl Endian for i64[src]

impl Endian for f32[src]

impl Endian for f64[src]

Loading content...

Implementors

Loading content...