deserialize_from

Function deserialize_from 

Source
pub fn deserialize_from<R, T>(reader: R) -> Result<T>
where R: BufRead, T: for<'de> Deserialize<'de>,
Expand description

Deserialize data from the given byte reader.

ยงUsage
let bytes = serialize(&42u64).unwrap();
let result: u64 = deserialize_from(&bytes[..]).unwrap();
assert_eq!(42u64, result);