-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
49 - allow read_index_with_flags for memory mapping some index types #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the pull request. Please see the concerns inline. I suspect some parts were not written to completion.
Hi just bumping on this. I responded to your comments and can't proceed without more feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, please look into the duplicate definition problem and see if you can incorporate the IoFlags
newtype. With that done, I think this would be ready to enter.
Sorry for delays, and thanks very much for your feedback, was great to learn proper way to do the |
Do you think this can go up as a new crate version in the next week? I'd like to take a dependency on this functionality soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a new crate version is due. I'll look into this. Thank you for your contribution!
I think using
pub mod const
s here achieves least surprise for users and minimizes boilerplate to makeenum
like abitmask
. (There's this crate, and this crate, but it seems a lot just to makeenum
have something likeimpl BitOr
/ allow for "and"ing options.)I could attempt to test this by creating a temporary index file and open it with these flags, too.
Not sure if you'd really want to version bump on this.