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
It probably has zero impact on performance. iter is dominated by I/O, unless you call it in a loop and don't actually iterate, which is a very contrived scenario. I'd like to avoid breaking changes for no gain.
It's doable with a trait impl on a ref with lifetime set, though that requires adding another trait and some pretty verbose extra trait bounds, which wouldn't be super pretty, so fair enough.
The return type on
Database::iter
inkvdb-rocksdb
isimpl Iterator<...>
, which limits the usability of the iterator for downstream users, in particular we can't put it into an associated type for a trait and have to use a boxed iterator trait object instead.It would be nice to have a public type alias for the concrete type, or a newtype wrapper around it to hide internals if necessary.
The text was updated successfully, but these errors were encountered: