pub trait SerializableVec: SizedBytes {
    // Required method
    fn to_bytes(&mut self) -> Vec<u8>;
}
Expand description

Auto-trait to create variable sized vectors out of SizedBytes implementations.

Required Methods§

source

fn to_bytes(&mut self) -> Vec<u8>

Create a variable size vector of bytes from the instance.

Implementors§

source§

impl<T> SerializableVec for Twhere T: SizedBytes + Read,