/// Serialise an `Serialize` type with max limit specified.
Serialise an `Serialize` type with max limit specified.
Serialise an ` Serialize ` type with max limit specified .
pub fn serialise_with_limit<T>(data: &T, size_limit: Bounded) -> Result<Vec<u8>, SerialisationError>
where
    T: Serialize,
{
    serialize(data, size_limit).map_err(|e| SerialisationError::Serialise(*e))
}
pub fn serialise_with_limit < T > ( data : & T , size_limit : Bounded ) -> Result < Vec < u8 > , SerialisationError > where T : Serialize , { serialize ( data , size_limit ) . map_err ( | e | SerialisationError :: Serialise ( * e ) ) }
Serialise an `Serialize` type with max limit specified.
Serialise an ` Serialize ` type with max limit specified .
data
&T
size_limit
Bounded