Trait dwarf::Endian [] [src]

pub trait Endian: Copy {
    fn read_u16<R: Read>(&self, r: &mut R) -> Result<u16Error>;
    fn read_u32<R: Read>(&self, r: &mut R) -> Result<u32Error>;
    fn read_u64<R: Read>(&self, r: &mut R) -> Result<u64Error>;
    fn write_u16<W: Write>(&self, w: &mut W, val: u16) -> Result<()Error>;
    fn write_u32<W: Write>(&self, w: &mut W, val: u32) -> Result<()Error>;
    fn write_u64<W: Write>(&self, w: &mut W, val: u64) -> Result<()Error>;
}

Required Methods

fn read_u16<R: Read>(&self, r: &mut R) -> Result<u16Error>

fn read_u32<R: Read>(&self, r: &mut R) -> Result<u32Error>

fn read_u64<R: Read>(&self, r: &mut R) -> Result<u64Error>

fn write_u16<W: Write>(&self, w: &mut W, val: u16) -> Result<()Error>

fn write_u32<W: Write>(&self, w: &mut W, val: u32) -> Result<()Error>

fn write_u64<W: Write>(&self, w: &mut W, val: u64) -> Result<()Error>

Implementors