Skip to main content

serialize

Function serialize 

Source
pub fn serialize<T>(val: &T) -> Result<Vec<u8>, WireError>
where T: Serialize,
Expand description

Serialize a value using the active wire format.

Returns JSON bytes in debug builds, bincode bytes in release builds.