-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I'm interested in bplustree, because it seems to allow removal/insertion without invalidating iterators, something it seems BTreeMap cannot do without cursors, which are only in nightly.
However, I'm hitting a lifetime issue with RawExclusiveIter::next:
Line 589 in aedade2
| pub fn next(&mut self) -> Option<(&K, &V)> { |
The associated type in btree_map::Iter uses the container's lifetime:
type Item = (&'a K, &'a V)which suggests the returned references should be tagged with 't in bplustree, since the underlying data should be valid even as the iterator is dropped.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels