pub fn encode<'se, T: Serialize>( value: &T, buf: &'se mut [u8], ) -> Result<&'se [u8], Error>
Encodes a value into provided buffer, returning a slice of the encoded representation