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§
Sourcefn write_tail(&mut self, value: &[u8]) -> Result
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()
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.