pub trait IpAddrExt {
// Required methods
fn subnet(&self, mask: &SubnetMask) -> Subnet;
fn is_global(&self) -> bool;
}Expand description
Extension trait providing subnet helpers for IpAddr.
Required Methods§
Sourcefn subnet(&self, mask: &SubnetMask) -> Subnet
fn subnet(&self, mask: &SubnetMask) -> Subnet
Return the Subnet for the given SubnetMask.