-
Notifications
You must be signed in to change notification settings - Fork 46
convenience: Iterator improvements #105
Copy link
Copy link
Closed
Description
Hello
I'm reading through the code a bit. I've noticed few places for possible improvements around iterators:
- There's an iterator support for Ipv4Network as well as Ipv6Network. But there's not one for IpNetwork. I think providing a wrapper iterator would be quite trivial.
- The iterator types may benefit from some derived traits (eg.
#[derive(Debug, Copy, Clone)]. - Oftentimes, if there's a
.iter()method for a type, the type-reference implementsIntoIterator. Eg.impl IntoIterator for &Ipv4Network.
If these would be considered reasonable additions, I'd volunteer to send the pull request.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels