Skip to main content

drain_to_vec

Function drain_to_vec 

Source
pub fn drain_to_vec<T>(encoder: &mut T) -> Vec<u8> 
where T: Encoder + ?Sized,
Expand description

Drains the output of an Encoder into a vector.