Skip to main content

Module ipext

Module ipext 

Source
Expand description

Extensions to the standard IP address types for common operations.

The IpAdd, IpSub, IpBitAnd, IpBitOr traits extend the Ipv4Addr and Ipv6Addr types with methods to perform these operations.

Macrosยง

ip_add_impl ๐Ÿ”’
ip_bitops_impl ๐Ÿ”’
ip_sub_impl ๐Ÿ”’

Structsยง

Ipv4AddrRange
An Iterator over a range of IPv4 addresses.
Ipv6AddrRange
An Iterator over a range of IPv6 addresses.

Enumsยง

IpAddrRange
An Iterator over a range of IP addresses, either IPv4 or IPv6.

Traitsยง

IpAdd
Provides a saturating_add() method for Ipv4Addr and Ipv6Addr.
IpBitAnd
Provides a bitand() method for Ipv4Addr and Ipv6Addr.
IpBitOr
Provides a bitor() method for Ipv4Addr and Ipv6Addr.
IpStep
IpSub
Provides a saturating_sub() method for Ipv4Addr and Ipv6Addr.