(&self)
| 92 | } |
| 93 | |
| 94 | fn flags_names(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_> { |
| 95 | let Self::Flags(flags) = self else { |
| 96 | return Box::new(std::iter::empty()); |
| 97 | }; |
| 98 | Box::new(flags.names().map(Into::into)) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | macro_rules! impl_primitives { |