passing all tests

This commit is contained in:
ripytide
2022-12-05 20:21:02 +00:00
parent 741a0b1082
commit 61d065fb03
+11 -3
View File
@@ -1100,7 +1100,8 @@ where
/// `RangeBounds`.
///
/// This is equivalent to using [`RangeBoundsMap::cut()`]
/// followed by [`RangeBoundsMap::insert_platonic()`].
/// followed by [`RangeBoundsMap::insert_platonic()`]. Hence the
/// same `V: Clone` trait bound applies.
///
/// If the remaining `RangeBounds` left after the cut are not able
/// to be created with the [`TryFromBounds`] trait then a
@@ -1124,8 +1125,15 @@ where
&mut self,
range_bounds: K,
value: V,
) -> Result<(), TryFromBoundsError> {
todo!()
) -> Result<(), TryFromBoundsError>
where
V: Clone,
K: TryFromBounds<I>,
{
self.cut(&range_bounds)?;
self.insert_platonic(range_bounds, value).unwrap();
return Ok(());
}
}