Function decode_owned_cursor

Source
pub fn decode_owned_cursor<T: DecodeOwned>(
    src: &mut ReadCursor<'_>,
) -> DecodeResult<T>
Expand description

Decodes an owned value of type T from a ReadCursor.

This function uses the provided ReadCursor to decode an owned value of type T that implements the DecodeOwned trait.

§Arguments

  • src - A mutable reference to a ReadCursor containing the bytes to be decoded.

§Returns

Returns a DecodeResult<T>, which is either the successfully decoded owned value or a DecodeError if decoding fails.