Trait io_operations::reader::Reader [] [src]

pub trait Reader: Read {
    fn read_unsigned_byte(&mut self) -> Result<u8, &'static str> { ... }
    fn read_signed_byte(&mut self) -> Result<i8, &'static str> { ... }
    fn read_unsigned_be_short(&mut self) -> Result<u16, &'static str> { ... }
    fn read_unsigned_le_short(&mut self) -> Result<u16, &'static str> { ... }
    fn read_signed_be_short(&mut self) -> Result<i16, &'static str> { ... }
    fn read_signed_le_short(&mut self) -> Result<i16, &'static str> { ... }
    fn read_unsigned_be_int(&mut self) -> Result<u32, &'static str> { ... }
    fn read_unsigned_le_int(&mut self) -> Result<u32, &'static str> { ... }
    fn read_signed_be_int(&mut self) -> Result<i32, &'static str> { ... }
    fn read_signed_le_int(&mut self) -> Result<i32, &'static str> { ... }
    fn read_unsigned_be_long(&mut self) -> Result<u64, &'static str> { ... }
    fn read_signed_be_long(&mut self) -> Result<i64, &'static str> { ... }
    fn read_unsigned_le_long(&mut self) -> Result<u64, &'static str> { ... }
    fn read_signed_le_long(&mut self) -> Result<i64, &'static str> { ... }
}

Extends the Read trait to provide common I/O reader operations

Provided Methods

fn read_unsigned_byte(&mut self) -> Result<u8, &'static str>

Reads an unsigned byte from this Reader

fn read_signed_byte(&mut self) -> Result<i8, &'static str>

Reads a signed byte from this Reader

fn read_unsigned_be_short(&mut self) -> Result<u16, &'static str>

Reads an unsigned big-endian short from this Reader

fn read_unsigned_le_short(&mut self) -> Result<u16, &'static str>

Reads an unsigned little-endian short from this Reader

fn read_signed_be_short(&mut self) -> Result<i16, &'static str>

Reads a signed big-endian short from this Reader

fn read_signed_le_short(&mut self) -> Result<i16, &'static str>

Reads a signed little-endian short from this Reader

fn read_unsigned_be_int(&mut self) -> Result<u32, &'static str>

Reads an unsigned big-endian integer from this Reader

fn read_unsigned_le_int(&mut self) -> Result<u32, &'static str>

Reads an unsigned little-endian integer from this Reader

fn read_signed_be_int(&mut self) -> Result<i32, &'static str>

Reads a signed big-endian integer from this Reader

fn read_signed_le_int(&mut self) -> Result<i32, &'static str>

Reads a signed little-endian integer from this Reader

fn read_unsigned_be_long(&mut self) -> Result<u64, &'static str>

Reads an unsigned big-endian long from this Reader

fn read_signed_be_long(&mut self) -> Result<i64, &'static str>

Reads a signed big-endian long from this Reader

fn read_unsigned_le_long(&mut self) -> Result<u64, &'static str>

Reads an unsigned little-endian long from this Reader

fn read_signed_le_long(&mut self) -> Result<i64, &'static str>

Reads a signed little-endian long from this Reader

Implementors