/// Serialise an `Serialize` type directly into a `Write` with max size limit specified.
Serialise an `Serialize` type directly into a `Write` with max size limit specified.
Serialise an ` Serialize ` type directly into a ` Write ` with max size limit specified .
pub fn serialise_into_with_limit<T: Serialize, W: Write>(
    data: &T,
    write: &mut W,
    size_limit: Bounded,
) -> Result<(), SerialisationError> {
    serialize_into(write, data, size_limit).map_err(|e| SerialisationError::Serialise(*e))
}
pub fn serialise_into_with_limit < T : Serialize , W : Write > ( data : & T , write : & mut W , size_limit : Bounded , ) -> Result < ( ) , SerialisationError > { serialize_into ( write , data , size_limit ) . map_err ( | e | SerialisationError :: Serialise ( * e ) ) }
Serialise an `Serialize` type directly into a `Write` with max size limit specified.
Serialise an ` Serialize ` type directly into a ` Write ` with max size limit specified .
data
&T
write
&mut W
size_limit
Bounded