Function decode
Source pub fn decode<T: Model>(data: Vec<u8>) -> Result<(T, u32)>
Expand description
Allows to decode a native_model from a Vec<u8> and returns the version (u32).
See examples:
ยงErrors
The errors returned from this function depend on the Decode trait
implementor (the deserializer), i.e. bincode_2.