Trait Buffer

Source
pub trait Buffer: AsRef<[u8]> {
    // Required method
    fn extend_with(&mut self, buf: &[u8]);
}
Expand description

A type that can be extended with byte slices.

Required Methods§

Source

fn extend_with(&mut self, buf: &[u8])

Implementations on Foreign Types§

Source§

impl Buffer for Vec<u8>

Source§

fn extend_with(&mut self, buf: &[u8])

Source§

impl<A: Array<Item = u8>> Buffer for TinyVec<A>

Source§

fn extend_with(&mut self, buf: &[u8])

Implementors§