pub fn from_bytes<'a, T>(s: &'a [u8]) -> SpannedResult<T>where
T: Deserialize<'a>,
Expand description
A convenience function for building a deserializer
and deserializing a value of type T
from bytes.
pub fn from_bytes<'a, T>(s: &'a [u8]) -> SpannedResult<T>where
T: Deserialize<'a>,
A convenience function for building a deserializer
and deserializing a value of type T
from bytes.