pub unsafe fn as_ref_unchecked(bytes: &[u8]) -> &Self {
        // The interpreter will frequently make references to keys and values using
        // logically checked slices.
        //
        // This function will avoid unnecessary copy to owned slices for the interpreter
        // access
        &*(bytes.as_ptr() as *const Self)
    }
/// Copy-free reference cast
///
/// There is no guarantee the provided bytes will fit the field.
///
/// # Safety
///
/// Inputs smaller than `Self::LEN` will cause undefined behavior.
Copy-free reference cast
There is no guarantee the provided bytes will fit the field.
Copy - free reference cast There is no guarantee the provided bytes will fit the field .
pub unsafe fn as_ref_unchecked(bytes: &[u8]) -> &Self {
        // The interpreter will frequently make references to keys and values using
        // logically checked slices.
        //
        // This function will avoid unnecessary copy to owned slices for the interpreter
        // access
        &*(bytes.as_ptr() as *const Self)
    }
pub unsafe fn as_ref_unchecked ( bytes : & [ u8 ] ) -> & Self { // The interpreter will frequently make references to keys and values using // logically checked slices. // // This function will avoid unnecessary copy to owned slices for the interpreter // access & * ( bytes . as_ptr ( ) as * const Self ) }
Copy-free reference cast
There is no guarantee the provided bytes will fit the field.
Copy - free reference cast There is no guarantee the provided bytes will fit the field .
bytes
&[u8]
safety
Inputs smaller than `Self::LEN` will cause undefined behavior.
Inputs smaller than ` Self :: LEN ` will cause undefined behavior .