sparse

Trait Writer

Source
pub trait Writer: Write + Seek {
    // Required method
    fn set_len(&mut self, size: u64) -> Result<()>;
}
Expand description

A union trait for Write and Seek that also allows truncation.

Required Methods§

Source

fn set_len(&mut self, size: u64) -> Result<()>

Sets the length of the output stream.

Implementations on Foreign Types§

Source§

impl Writer for File

Source§

fn set_len(&mut self, size: u64) -> Result<()>

Source§

impl Writer for Cursor<Vec<u8>>

Source§

fn set_len(&mut self, size: u64) -> Result<()>

Implementors§