Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iterator over all the enabled options
This adds a new function that returns an iterator over all the enabled flags. This implementation takes into account combined flags like the ones described in: bitflags#204 (comment) It uses an `impl Iterator` as return type because using an specific Iter type implies using const generics which are not supported in earlier versions of rust and adding a const to the trait in order to express the correct dimension of the array as can be seen in the last solution proposed in bitflags#204. This superseeds bitflags#204
- Loading branch information