from_slice

Function from_slice 

Source
pub fn from_slice<T>(bytes: &[u8]) -> Result<T>
Expand description

This is a short cut method that creates a new instance of ByteDeserializerSlice and then uses that to convert them into a T type struct.