Function fuel_types::bytes::from_slice_unchecked
source · pub unsafe fn from_slice_unchecked<const N: usize>(buf: &[u8]) -> [u8; N]
Expand description
Add a conversion from arbitrary slices into arrays
Safety
This function will not panic if the length of the slice is smaller than N
. Instead, it will
cause undefined behavior and read random disowned bytes.