borrow_decode_from_slice

Function borrow_decode_from_slice 

Source
pub fn borrow_decode_from_slice<'de, D, C>(
    slice: &'de [u8],
    config: C,
) -> Result<(D, usize), DecodeError>
where D: Deserialize<'de>, C: Config,
Expand description

Attempt to decode a given type D from the given slice. Returns the decoded output and the amount of bytes read.

See the config module for more information on configurations.