Trait Mask
Other items innetaddr2
pub trait Mask { type Output; fn mask(&self, other: &Self) -> Self::Output; }
Masking one object with another
type Output
The result of masking
fn mask(&self, other: &Self) -> Self::Output
Perform the mask
impl Mask for IpAddr
type Output = Result<Self, &'static str>
impl Mask for Ipv4Addr
type Output = Self
impl Mask for Ipv6Addr