Skip to main content

Output

Trait Output 

Source
pub trait Output {
    // Required method
    fn write(&mut self, data: &[u8]);

    // Provided methods
    fn is_mangling(&self) -> bool { ... }
    fn is_real(&self) -> bool { ... }
}

Required Methods§

Source

fn write(&mut self, data: &[u8])

Provided Methods§

Source

fn is_mangling(&self) -> bool

Source

fn is_real(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Output for Sha256

Digest::updates the hasher.

Source§

fn write(&mut self, data: &[u8])

Source§

impl Output for Vec<u8>

Source§

fn write(&mut self, data: &[u8])

Source§

impl<T: ?Sized + Output> Output for &mut T

Source§

fn write(&mut self, data: &[u8])

Implementors§