Skip to content

Conversation

@MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Jan 7, 2025

This PR makes IpNetwork::mask and thereby Ipv4Network::mask and Ipv6Network::mask const.

Is this too invasive? Ipv{4,6}Addr::from_bits was introduced in Rust 1.80. If this change was to be accepted, it would unlock more const-ification through Ipv{4,6}Addr::to_bits as well!

@achanda achanda merged commit 9ae7196 into achanda:master Jan 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants