from_bytes

Function from_bytes 

Source
pub fn from_bytes<T, C: Any>(
    bytes: &[u8],
    context: &C,
) -> Result<T, DeserializeError>
where T: Archive, T::Archived: for<'a> CheckBytes<Validator<'a>> + Deserialize<T, Deserializer>,
Expand description

Transform bytes to struct

This function implementation refers to rkyv::from_bytes and add custom error and context support