Struct stijl::BufStream
[−]
[src]
pub struct BufStream { /* fields omitted */ }
A Stream
that records writes and style
changes.
Methods
impl BufStream
[src]
fn new() -> BufStream
[src]
Create a new, empty BufStream
.
fn playback(&self, other: &mut Stream) -> Result<()>
[src]
Perform the actions recorded on this BufStream
onto another
Stream
.
Trait Implementations
impl Default for BufStream
[src]
impl Write for BufStream
[src]
fn write(&mut self, data: &[u8]) -> Result<usize>
[src]
Record the call to write
.
fn flush(&mut self) -> Result<()>
[src]
Record the call to flush
.
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Creates a "by reference" adaptor for this instance of Write
. Read more
impl Stream for BufStream
[src]
The Stream
methods of this implementation always succeed with
Ok(())
.