Skip to main content

to_vec

Function to_vec 

Source
pub fn to_vec<T>(x: &T) -> Vec<u8> 
where T: Encode,
Expand description

Encode a type implementing Encode and return the encoded byte vector.

Requires feature "alloc".