pub fn serialise<T>(data: &T) -> Result<Vec<u8>, SerialisationError>
where
    T: Serialize,
{
    serialize(data, Infinite).map_err(|e| SerialisationError::Serialise(*e))
}
/// Serialise an `Serialize` type with no limit on the size of the serialised data.
Serialise an `Serialize` type with no limit on the size of the serialised data.
Serialise an ` Serialize ` type with no limit on the size of the serialised data .
pub fn serialise<T>(data: &T) -> Result<Vec<u8>, SerialisationError>
where
    T: Serialize,
{
    serialize(data, Infinite).map_err(|e| SerialisationError::Serialise(*e))
}
pub fn serialise < T > ( data : & T ) -> Result < Vec < u8 > , SerialisationError > where T : Serialize , { serialize ( data , Infinite ) . map_err ( | e | SerialisationError :: Serialise ( * e ) ) }
Serialise an `Serialize` type with no limit on the size of the serialised data.
Serialise an ` Serialize ` type with no limit on the size of the serialised data .
data
&T
data
&T