Skip to main content

encode_slice

Function encode_slice 

Source
pub fn encode_slice<T: Serialize>(value: &T) -> Result<Vec<u8>, MigrateError>
Expand description

Turns a value into the bytes of a slice (postcard) (used in tests of migrate and so on).