pub fn from_slice<'a, T>(input: &'a [u8]) -> Result<T, Error> where T: Deserialize<'a>,
Deserializes a byte slice into the desired type.
It just calls the more generic from_read_ref.
from_read_ref