ssh_format

Trait SerOutput

Source
pub trait SerOutput {
    // Required methods
    fn extend_from_slice(&mut self, other: &[u8]);
    fn push(&mut self, byte: u8);
    fn reserve(&mut self, additional: usize);
}
Expand description

A trait for which can be used to store serialized output.

Required Methods§

Source

fn extend_from_slice(&mut self, other: &[u8])

Source

fn push(&mut self, byte: u8)

Source

fn reserve(&mut self, additional: usize)

Reserves capacity for at least additional more bytes to be inserted.

More than additional bytes may be reserved in order to avoid frequent reallocations. A call to reserve may result in an allocation.

Implementations on Foreign Types§

Source§

impl SerOutput for Vec<u8>

Source§

fn extend_from_slice(&mut self, other: &[u8])

Source§

fn push(&mut self, byte: u8)

Source§

fn reserve(&mut self, additional: usize)

Source§

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

Source§

fn extend_from_slice(&mut self, other: &[u8])

Source§

fn push(&mut self, byte: u8)

Source§

fn reserve(&mut self, additional: usize)

Implementors§