Struct std::io::util::IterReaderExperimental [-]  [+] [src]

pub struct IterReader<T> {
    // some fields omitted
}

An adaptor converting an Iterator<u8> to a Reader.

Methods

impl<T: Iterator<u8>> IterReader<T>

fn new(iter: T) -> IterReader<T>

Creates a new IterReader which will read from the specified Iterator.

Trait Implementations

impl<T: Iterator<u8>> Reader for IterReader<T>

fn read(&mut self, buf: &mut [u8]) -> IoResult<uint>

fn read_at_least(&mut self, min: uint, buf: &mut [u8]) -> IoResult<uint>

fn read_byte(&mut self) -> IoResult<u8>

fn push(&mut self, len: uint, buf: &mut Vec<u8>) -> IoResult<uint>

fn push_at_least(&mut self, min: uint, len: uint, buf: &mut Vec<u8>) -> IoResult<uint>

fn read_exact(&mut self, len: uint) -> IoResult<Vec<u8>>

fn read_to_end(&mut self) -> IoResult<Vec<u8>>

fn read_to_string(&mut self) -> IoResult<String>

fn read_le_uint_n(&mut self, nbytes: uint) -> IoResult<u64>

fn read_le_int_n(&mut self, nbytes: uint) -> IoResult<i64>

fn read_be_uint_n(&mut self, nbytes: uint) -> IoResult<u64>

fn read_be_int_n(&mut self, nbytes: uint) -> IoResult<i64>

fn read_le_uint(&mut self) -> IoResult<uint>

fn read_le_int(&mut self) -> IoResult<int>

fn read_be_uint(&mut self) -> IoResult<uint>

fn read_be_int(&mut self) -> IoResult<int>

fn read_be_u64(&mut self) -> IoResult<u64>

fn read_be_u32(&mut self) -> IoResult<u32>

fn read_be_u16(&mut self) -> IoResult<u16>

fn read_be_i64(&mut self) -> IoResult<i64>

fn read_be_i32(&mut self) -> IoResult<i32>

fn read_be_i16(&mut self) -> IoResult<i16>

fn read_be_f64(&mut self) -> IoResult<f64>

fn read_be_f32(&mut self) -> IoResult<f32>

fn read_le_u64(&mut self) -> IoResult<u64>

fn read_le_u32(&mut self) -> IoResult<u32>

fn read_le_u16(&mut self) -> IoResult<u16>

fn read_le_i64(&mut self) -> IoResult<i64>

fn read_le_i32(&mut self) -> IoResult<i32>

fn read_le_i16(&mut self) -> IoResult<i16>

fn read_le_f64(&mut self) -> IoResult<f64>

fn read_le_f32(&mut self) -> IoResult<f32>

fn read_u8(&mut self) -> IoResult<u8>

fn read_i8(&mut self) -> IoResult<i8>

Derived Implementations

impl<T: Clone> Clone for IterReader<T>

fn clone(&self) -> IterReader<T>

fn clone_from(&mut self, source: &Self)