Macro arrutil::slice_to_array_mut_unchecked
[−]
[src]
macro_rules! slice_to_array_mut_unchecked { ($source:expr, $len:expr) => { ... }; }
You can use slice_to_array_mut_unchecked
to turn a mutable slice into a mutable 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_mut_unchecked<T>(source: &mut [T]) -> &mut [T; N]
Externally, it should be seen as having the signature
unsafe slice_to_array_mut_unchecked!(source: &mut [T], len: N) -> &mut [T; N]
Where N is an integer literal and a valid array length.