pub fn encode_to_vec<T: Encode + ?Sized>(value: &T) -> Vec<u8> ⓘExpand description
Encodes value as an outermost value.
§Panics
Panics if the value has no encoding, which takes a collection of more than i32::MAX elements (see
try_encode_to_vec for the non-panicking form).