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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".