Skip to content

OptionSlice redux (yes, I spelled the 2nd word correctly :P)

Jeremy Soller requested to merge stratact:orbital into orbital

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 takes Option<usize> as range parameters
  • Moves both GetSlice and OptionSlice to a slice module
  • Use OptionSlice in the more appropriate places where GetSlice is not well suited
  • Cleanup unused imports in GetSlice

Merge request reports