Trait TailWriteBytes

Source
pub trait TailWriteBytes: WriteBytes {
    // Required method
    fn write_tail(&mut self, value: &[u8]) -> Result;
}
Expand description

Trait for writer to the tail of byte buffer

Required Methods§

Source

fn write_tail(&mut self, value: &[u8]) -> Result

Write to the tail of byte buffer

Implementations on Foreign Types§

Source§

impl TailWriteBytes for Vec<u8>

Pushes data to the vector, same as write()

This means that Serializer can write to Vec<u8> buffer directly and grow it as needed, however in this case lexicographic ordering property will not be preserved.

Source§

fn write_tail(&mut self, buf: &[u8]) -> Result

Source§

impl<T> TailWriteBytes for &mut T
where T: TailWriteBytes,

Source§

fn write_tail(&mut self, buf: &[u8]) -> Result

Implementors§