Trait canonical::EncodeToVec[][src]

pub trait EncodeToVec {
    fn encode_to_vec(&self) -> Vec<u8>;
}
Expand description

Helper trait to encode Canon types into byte vectors.

Required methods

fn encode_to_vec(&self) -> Vec<u8>[src]

Encode Self into a buffer

Implementors

impl<T> EncodeToVec for T where
    T: Canon
[src]

fn encode_to_vec(&self) -> Vec<u8>[src]