ToVec

Trait ToVec 

Source
pub trait ToVec: Sealed {
    // Required method
    fn copy_to_vec(&self) -> Result<Vec<u8>>;
}
Expand description

This trait is automatically implemented for all ToWrite impls to allow a struct to be copied into a Vec. This trait is sealed and cannot be implemented manually.

Required Methods§

Implementors§

Source§

impl<T> ToVec for T
where T: ToWrite,