Macro arrutil::split_to_array_mut
[−]
[src]
macro_rules! split_to_array_mut { ($source:expr, $len:expr) => { ... }; }
You can use split_to_array_mut
to turn a mutable slice into a mutable reference to an array
and a mutable slice starting from the end of the array.
Internally, it has the signature
fn split_to_array_mut<T>(source: &mut [T]) -> Option<(&mut [T; N], &mut [T])>
Externally, it should be seen as having the signature
slice_to_array_mut!(source: &mut [T], len: N) -> Option<(&mut [T; N], &mut [T])>
Where N is an integer literal and a valid array length.
Returns None
when length is longer than slice.