pub fn bytes_to_ref<T: Castable>(bytes: &[u8]) -> Result<&T, Error>
Cast type &T from a u8 slice.
&T
u8