pub fn serialize<T: Serialize>(data: &T) -> Result<Vec<u8>, SerializationError> {
    bincode::DefaultOptions::new()
        .with_fixint_encoding()
        .allow_trailing_bytes()
        .serialize(data)
        .map_err(Into::into)
}
/// serialize an `Serialize` type with no limit on the size of the serialized data.
serialize an `Serialize` type with no limit on the size of the serialized data.
serialize an ` Serialize ` type with no limit on the size of the serialized data .
pub fn serialize<T: Serialize>(data: &T) -> Result<Vec<u8>, SerializationError> {
    bincode::DefaultOptions::new()
        .with_fixint_encoding()
        .allow_trailing_bytes()
        .serialize(data)
        .map_err(Into::into)
}
pub fn serialize < T : Serialize > ( data : & T ) -> Result < Vec < u8 > , SerializationError > { bincode :: DefaultOptions :: new ( ) . with_fixint_encoding ( ) . allow_trailing_bytes ( ) . serialize ( data ) . map_err ( Into :: into ) }
serialize an `Serialize` type with no limit on the size of the serialized data.
serialize an ` Serialize ` type with no limit on the size of the serialized data .
data
&T
data
&T