Skip to content

Reverse iterators #192

@maackle

Description

@maackle

It seems like it would be easy to add a few methods to SingleStore et al to produce Iterators that go in reverse. I proposed this in mozilla/lmdb-rs#75, which if merged should make adding it to rkv a simple matter.

I'm going to try it in a fork, but I want to ask if there are any guidelines for interfaces that a maintainer could propose that would make my work more likely to be merged upstream. Adding iter_end and iter_from_reverse come to mind as a possibility, but it could also be implemented as a flag on iter_start and iter_from.

I need this for my project, specifically the ability to get the last key by sort order, which a reverse iterator would accomplish in a more general way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions