Macro arrutil::slice_to_array_unchecked [] [src]

macro_rules! slice_to_array_unchecked {
    ($source:expr, $len:expr) => { ... };
}

You can use slice_to_array_unchecked to turn a slice into a reference to an array without bounds checking.

This macro is unsafe and should be called as such.

Internally, it has the signature

unsafe fn slice_to_array_unchecked<T>(source: &[T]) -> &[T; N]

Externally, it should be seen as having the signature

unsafe slice_to_array_unchecked!(source: &[T], len: N) -> &[T; N]

Where N is an integer literal and a valid array length.