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

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

A writer which can be converted to a RefWriter.

Required Methods

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

Creates a wrapper around a mutable reference to the writer.

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

Implementors