[−][src]Function serde_xdr::from_bytes
pub fn from_bytes<'de, B, T>(bytes: B) -> Result<T, CompatDeserializationError> where
B: AsRef<[u8]>,
T: Deserialize<'de>,
Deserializes data from a slice of bytes.
Deserializes data of a given type T
from a generic instance that can be
accessed as a reference to a slice of bytes.
The deserializer is currently zero-copy, which means that the returned data owns everything it deserialized.