Skip to main content

Write

Trait Write 

Source
pub trait Write {
    // Required method
    fn write_all(&mut self, bytes: &[u8]) -> Result<(), Error>;
}
Expand description

A sink that writes every byte or returns an error. Errors may leave partial output.

Required Methods§

Source

fn write_all(&mut self, bytes: &[u8]) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Write for SliceWriter<'_>

Source§

impl<W> Write for PackOutput<'_, W>
where W: Write,

Source§

impl<W> Write for Report<'_, W>
where W: Write,