sub-array
Allows to extract a sub-array out of an array
Example
Getting a sub array:
use SubArray;
let arr: = ;
// Get a sub-array starting at offset 1
let sub: & = arr.sub_array_ref;
assert_eq!;
Modifying through a mutable sub array:
use SubArray;
let mut arr = ;
// Get mutable sub-array starting at offset 2 (last element)
let sub: &mut = arr.sub_array_mut;
sub.push_str;
// The original array has been modified
assert_eq!;
License
Licensed under Apache License, Version 2.0 (LICENSE or https://www.apache.org/licenses/LICENSE-2.0).
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.