Struct std::io::BufferedWriter
struct BufferedWriter<W> { ... }
W: Writable<W>
A buffered wrapper over an underlying writable stream.
Fields
Methods
impl BufferedWriter<W> { ... }
W: Writable<W>
- 
fn new(inner: &mut W, buf_size: usize) -> BufferedWriter<W>Create a BufferedWriter with a heap-allocated buffer of the given size. 
- 
fn from_slice(inner: &mut W, buf: &mut [u8]) -> BufferedWriter<W>Creates a BufferedWriter from an existing-buffer, potentially avoiding a heap allocation. 
- 
fn write(self: &mut BufferedWriter<W>, buf: &[u8]) -> Result<usize>Write the buffer to the stream. Returns the number of bytes written. This may be less than the size of the buffer. See also write_all, which can be used to write the entire buffer. 
- 
fn write_all(self: &mut BufferedWriter<W>, buf: &[u8]) -> Result<()>Writes all the bytes in the buffer to the stream. If EOF is reached, returns Error::eof().
- 
fn flush(self: &mut BufferedWriter<W>) -> Result<()>Flush the stream This may be a no-op, depending on the stream. 
- 
fn free(self: &mut BufferedWriter<W>)Frees the memory backing the object. 
- 
fn move(self: &mut BufferedWriter<W>) -> BufferedWriter<W>
impl BufferedWriter<W> { ... }
W: Writable<W>
- 
fn write_str(self: &mut BufferedWriter<W>, buf: &[u8]) -> ResultWrite a string 
Mixins
impl BufferedWriter<W> { ... }
W: Writable<W>
- 
mixin Formatter<BufferedWriter<W>>
- 
Write a single character