OptionSlice redux (yes, I spelled the 2nd word correctly :P)
Created by: stratact
For the same reasons in PR #474 and after much thought, I was able to make .option_slice()
take a range much like get_slice()
except it takes Option<usize>
for both start and end of the range: So here are the following changes:
- Adds
OptionSlice
which takesOption<usize>
as range parameters - Moves both
GetSlice
andOptionSlice
to aslice
module - Use
OptionSlice
in the more appropriate places whereGetSlice
is not well suited - Cleanup unused imports in
GetSlice