Skip to main content

Write

Trait Write 

Source
pub trait Write {
    // Required methods
    fn write(&mut self, buf: &[u8]) -> Result<usize>;
    fn can_write(&self) -> bool;
}

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> Result<usize>

Source

fn can_write(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§