An iterator over flags values. This iterator only yields flags values for contained, defined, named flags. Any remaining bits won't be yielded, but can be found with the [`IterNames::remaining`] method. */
| 65 | won't be yielded, but can be found with the [`IterNames::remaining`] method. |
| 66 | */ |
| 67 | pub struct IterNames<B: 'static> { |
| 68 | flags: &'static [Flag<B>], |
| 69 | idx: usize, |
| 70 | source: B, |
| 71 | remaining: B, |
| 72 | } |
| 73 | |
| 74 | impl<B: Flags> IterNames<B> { |
| 75 | pub(crate) fn new(flags: &B) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected