Skip to content
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

Iterator over all the enabled options #278

Merged
merged 10 commits into from Apr 28, 2022
Merged

Commits on Apr 19, 2022

  1. 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
    arturoc committed Apr 19, 2022
    Copy the full SHA
    e2ec673 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    abc1e0c View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. iterators: add tests

    arturoc committed Apr 20, 2022
    Copy the full SHA
    229f196 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    c18695a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    4ba731a View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    c5a5c15 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    46fbbc3 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    00058b1 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    5f753e1 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. iterator: add cfg to tests

    arturoc committed Apr 26, 2022
    Copy the full SHA
    6656792 View commit details
    Browse the repository at this point in the history