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
Implement Iterator for bitflags #204
Closed
Closed
Commits on Dec 10, 2019
-
Implement Iterator for bitflagsAdds a new
iter()
method to bitflags…… that returns an iterator over all the enabled flags.Uses `iter::from_fn` to create the iterator to avoid having to add a new struct to the macro which would require a parameter specifying it's name.
Configuration menu - View commit details
-
Copy full SHA for 6f56d07 - Browse repository at this point
Copy the full SHA 6f56d07View commit details
Commits on Jun 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d4cd1ee - Browse repository at this point
Copy the full SHA d4cd1eeView commit details
Commits on May 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 826581c - Browse repository at this point
Copy the full SHA 826581cView commit details
Commits on Apr 19, 2022
-
from_bits_(truncate) fail with composite flags
When a bitflags type contains composite flags like: ```rs bitflags! { struct Flags: u8 { const A = 0b00000001; const BC = 0b00000110; } } ``` from_bits and from_bits_truncate would not work as expected allowing flags that are not declared. Fixes bitflags#275
Configuration menu - View commit details
-
Copy full SHA for 8b10fe1 - Browse repository at this point
Copy the full SHA 8b10fe1View commit details -
Uses an array to store all the possible combinations and checks one by one all of them until the flag or the array is empty. Requires a higher version of rust (1.51) since it needs const generics.
Configuration menu - View commit details
-
Copy full SHA for 6250b31 - Browse repository at this point
Copy the full SHA 6250b31View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f8b71 - Browse repository at this point
Copy the full SHA b0f8b71View commit details -
Cause Serialize and Deserialize derives are used from serde:: instead of serde_derive::
Configuration menu - View commit details
-
Copy full SHA for 5787e70 - Browse repository at this point
Copy the full SHA 5787e70View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccffb65 - Browse repository at this point
Copy the full SHA ccffb65View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.