point set::get_at_point to map::get_entry_at_point since it has extra semantics

This commit is contained in:
ripytide 2023-04-19 10:09:14 +01:00
parent e6c3d8f219
commit 2cb87db1eb
No known key found for this signature in database
GPG Key ID: B2629F9EC7C2FE8C

View File

@ -66,7 +66,7 @@ where
{
self.inner.overlapping(range).map(first)
}
/// See [`RangeBoundsMap::get_at_point()`] for more details.
/// See [`RangeBoundsMap::get_entry_at_point()`] for more details.
pub fn get_at_point(&self, point: I) -> Result<K, (Bound<I>, Bound<I>)> {
self.inner.get_entry_at_point(point).map(first).copied()
}