Skip to main content

Write

Trait Write 

Source
pub trait Write {
    // Required method
    fn write_all(&mut self, bytes: &[u8]) -> Result<()>;
}
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<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§