-fn check_eq(btree: &BTreeMap<u8, u8>, indexed: &IndexedMap<u8, u8>) {
+use std::ops::{Bound, RangeBounds};
+
+struct ExclLowerInclUpper(u8, u8);
+impl RangeBounds<u8> for ExclLowerInclUpper {
+ fn start_bound(&self) -> Bound<&u8> {
+ Bound::Excluded(&self.0)
+ }
+ fn end_bound(&self) -> Bound<&u8> {
+ Bound::Included(&self.1)
+ }
+}
+struct ExclLowerExclUpper(u8, u8);
+impl RangeBounds<u8> for ExclLowerExclUpper {
+ fn start_bound(&self) -> Bound<&u8> {
+ Bound::Excluded(&self.0)
+ }
+ fn end_bound(&self) -> Bound<&u8> {
+ Bound::Excluded(&self.1)
+ }
+}
+
+fn check_eq(btree: &BTreeMap<u8, u8>, mut indexed: IndexedMap<u8, u8>) {