bytes_to_ref

Function bytes_to_ref 

Source
pub fn bytes_to_ref<T: Castable>(bytes: &[u8]) -> Result<&T, Error>
Expand description

Cast type &T from a u8 slice.