Struct bytes::Writer [] [src]

pub struct Writer<B> { /* fields omitted */ }

Adapts a BufMut to the io::Write trait

Methods

impl<B: BufMut> Writer<B>
[src]

Return a Writer for teh given buf

Gets a reference to the underlying buf.

Gets a mutable reference to the underlying buf.

Unwraps this Writer, returning the underlying BufMut

Trait Implementations

impl<B: BufMut + Sized> Write for Writer<B>
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more