From 33e4cfac0be2dbab3d2b9c813ebc3ff3ba368f4f Mon Sep 17 00:00:00 2001 From: ripytide Date: Sat, 10 Dec 2022 01:14:22 +0000 Subject: [PATCH] added very important clarification on non-overlapping map+set --- src/range_bounds_map.rs | 2 +- src/range_bounds_set.rs | 2 +- todo.md | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/range_bounds_map.rs b/src/range_bounds_map.rs index d7b33a5..b69568a 100644 --- a/src/range_bounds_map.rs +++ b/src/range_bounds_map.rs @@ -31,7 +31,7 @@ use serde::{Deserialize, Serialize}; use crate::bound_ord::BoundOrd; use crate::TryFromBounds; -/// An ordered map of [`RangeBounds`] based on [`BTreeMap`]. +/// An ordered map of non-overlapping [`RangeBounds`] based on [`BTreeMap`]. /// /// `I` is the generic type parameter for the [`Ord`] type the `K` type /// is [`RangeBounds`] over. diff --git a/src/range_bounds_set.rs b/src/range_bounds_set.rs index 3b3ea4f..a1c5fc6 100644 --- a/src/range_bounds_set.rs +++ b/src/range_bounds_set.rs @@ -28,7 +28,7 @@ use crate::{ TryFromBoundsError, }; -/// An ordered set of [`RangeBounds`] based on [`RangeBoundsMap`]. +/// An ordered set of non-overlapping [`RangeBounds`] based on [`RangeBoundsMap`]. /// /// `I` is the generic type parameter for the [`Ord`] type the `K` /// type is [`RangeBounds`] over. diff --git a/todo.md b/todo.md index 9ee1eb0..6926570 100644 --- a/todo.md +++ b/todo.md @@ -1,10 +1,8 @@ # refactor -- try and fix all the uses of cloned() in the library -- replace MultiBounds::\* with mee() and mii() +- 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 -- do a /map on set.rs after finishing it - text flow all comments # features