Trait std::old_io::ByRefReaderUnstable [-] [+] [src]

pub trait ByRefReader {
    fn by_ref<'a>(&'a mut self) -> RefReader<'a, Self>;
}

A reader which can be converted to a RefReader.

Required Methods

fn by_ref<'a>(&'a mut self) -> RefReader<'a, Self>

Creates a wrapper around a mutable reference to the reader.

This is useful to allow applying adaptors while still retaining ownership of the original value.

Implementors