Skip to main content

to_bytes

Function to_bytes 

Source
pub fn to_bytes<T: Encode + ?Sized>(value: &T) -> Result<Vec<u8>, EncodeError>
Expand description

Encodes a top-level value.

ยงErrors

EncodeError when a field breaks its limit or rule.