Skip to main content

Out

Trait Out 

Source
trait Out {
    // Required method
    fn put(&mut self, bytes: &[u8]);

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

Where a message’s bytes go: written (Vec), or counted (Count).

Required Methods§

Source

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

Provided Methods§

Source

fn byte(&mut self, byte: u8)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Out for Vec<u8>

Source§

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

Implementors§