You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The associated type in btree_map::Iter uses the container's lifetime:
typeItem = (&'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.
The text was updated successfully, but these errors were encountered:
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
:bplustree/src/iter.rs
Line 589 in aedade2
The associated type in
btree_map::Iter
uses the container's lifetime: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.The text was updated successfully, but these errors were encountered: