finished re-writing logic via config and sortedConfig

This commit is contained in:
ripytide
2022-12-10 20:38:02 +00:00
parent 6b57f6d66f
commit 1ff034be6a
2 changed files with 239 additions and 1095 deletions
+226 -1095
View File
File diff suppressed because it is too large Load Diff
+13
View File
@@ -3,14 +3,26 @@
- try to fix all the uses of cloned() in the library
- make a StartBoundWrapper that uses StartBound to implement ord and
use that instead of storing the startbound twice
- make a range_bounds configuration: NonOverlapping, A contained in B,
A partial overlap B, with A before B. And use it to simplify all the
logic based RangeBounds functions
# features
- make specifc RangeMap, RangeSet, RangeInclusiveMap... types for signature
simplification
- alternatively add just the one generic SafeRangeBoundsMap + Set that
just add unwraps everywhere to simplify signatures on known-"Safe"
symmetric types such as Range
- add coalesce if same-value otherwise overwrite) function to make
finally make range_bounds_map a superset of rangemap
- make cut() return and Ok(Iterator((Bound, Bound))) like gaps()
- add gaps_same() and cut_same() which are gaps().map(to K) and
cut().map(to K) using TryFromBounds
- update the TryFromBoundsError with examples of new gaps() and cut()
# time based
- use it in robot_Sweet_graph for a bit before publishing
@@ -22,6 +34,7 @@
- copy map to set again
- copy readme to lib.rs docs again
- take a look around idiomatic rust for a bit first
- run is_labelled again
- review method parameter names for all public functions
- update lines of code figures on docs
- add issues to github for all the caveats