from_partial_bytes

Function from_partial_bytes 

Source
pub fn from_partial_bytes<'a, T>(bytes: &'a [u8]) -> Result<T>
where T: Deserialize<'a>,
Expand description

Parse binary data as the type specified in the partial generics.

e.g. one class, 3 booleans, [u32; 10],

§Errors

Fail to parse bytes.

§Note

If pointer types are included, it is impossible to deserialize correctly because fixups information is required.