/// Deserialise a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialise a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialise a ` Deserialize ` type directly from a ` Read ` with max size limit specified .
pub fn deserialise_from_with_limit<R: Read, T: DeserializeOwned>(
    read: &mut R,
    size_limit: Bounded,
) -> Result<T, SerialisationError> {
    deserialize_from(read, size_limit).map_err(|e| SerialisationError::Deserialise(*e))
}
pub fn deserialise_from_with_limit < R : Read , T : DeserializeOwned > ( read : & mut R , size_limit : Bounded , ) -> Result < T , SerialisationError > { deserialize_from ( read , size_limit ) . map_err ( | e | SerialisationError :: Deserialise ( * e ) ) }
Deserialise a `Deserialize` type directly from a `Read` with max size limit specified.
Deserialise a ` Deserialize ` type directly from a ` Read ` with max size limit specified .
read
&mut R
size_limit
Bounded