-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add count_ones_to_offset function #4
Comments
|
Or just implement it for |
I thought about using this crate like so: |
Absolutely not. Nothing personal, but indices are only |
Sure. I think i will use the trait from odds, do you want me to copy the implementation over or include odds as dependency? Also i think that in the long term we could migrate to rust-lang/rust#30877 if it ever stabilizes |
copy |
I have implemented function:
fn count_ones_to_offset(&self, offset: usize) -> usize
. I would like to add it to this crate, but when I asked @bluss about it, he suggested that maybe this function should take Range as argument. Example usage below:The text was updated successfully, but these errors were encountered: