Expand description
Re-export of the ipnet
crate.
Types for IPv4 and IPv6 network addresses.
Structs§
- An error which can be returned when parsing an IP network address.
- An
Iterator
over a range of IPv4 addresses. - An IPv4 network address.
- An
Iterator
that generates IPv4 network addresses. - An
Iterator
over a range of IPv6 addresses. - An IPv6 network address.
- An
Iterator
that generates IPv6 network addresses. - An error which can be returned when the prefix length is invalid.
Enums§
- An
Iterator
over a range of IP addresses, either IPv4 or IPv6. - An IP network address, either IPv4 or IPv6.
- An
Iterator
that generates IP network addresses, either IPv4 or IPv6.
Traits§
- Provides a
saturating_add()
method forIpv4Addr
andIpv6Addr
. - Provides a
bitand()
method forIpv4Addr
andIpv6Addr
. - Provides a
bitor()
method forIpv4Addr
andIpv6Addr
. - Provides a
saturating_sub()
method forIpv4Addr
andIpv6Addr
.
Functions§
- Converts a
IpAddr
network mask into a prefix. - Converts a
Ipv4Addr
network mask into a prefix. - Converts a
Ipv6Addr
network mask into a prefix.