add MyFlags::Abc::iter_equal_names() method #489
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -180,3 +180,35 @@ impl<B: Flags> Iterator for IterDefinedNames<B> {NoneIterEqualNames?We unfortunately can't add this as an inherent method on the generated flags type, because it can conflict with an inherent method already added by the user.
We'll need to add it to the
Flagstrait instead.I have changed the code following your suggestions.
@ -180,3 +180,35 @@ impl<B: Flags> Iterator for IterDefinedNames<B> {NoneIf possible we should make this
pub(crate)to avoid exposing any more surface area than we need to.@ -180,3 +180,35 @@ impl<B: Flags> Iterator for IterDefinedNames<B> {Nonefixed
Thanks @ssrlive! This looks good to me