pub fn try_pod_read_unaligned<T>(bytes: &[u8]) -> Result<T, CheckedCastError>where
T: CheckedBitPattern,Expand description
Reads from the bytes as if they were a T.
ยงFailure
- If the
byteslength is not equal tosize_of::<T>(). - If the slice contains an invalid bit pattern for
T