Skip to main content

Output

Trait Output 

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

    // Provided method
    fn push_byte(&mut self, byte: u8) { ... }
}
Expand description

Trait that allows writing of data.

Required Methods§

Source

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

Write to the output.

Provided Methods§

Source

fn push_byte(&mut self, byte: u8)

Write a single byte to the output.

Implementations on Foreign Types§

Source§

impl Output for Vec<u8>

Available on non-crate feature std only.
Source§

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

Implementors§