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