pub fn decode_cursor<'de, T>(src: &mut ReadCursor<'de>) -> DecodeResult<T>where
T: Decode<'de>,Expand description
Decodes a value of type T from a ReadCursor.
This function uses the provided ReadCursor to decode a value of type T
that implements the Decode trait.
§Arguments
src- A mutable reference to aReadCursorcontaining the bytes to be decoded.
§Returns
Returns a DecodeResult<T>, which is either the successfully decoded value
or a DecodeError if decoding fails.