Mask

Trait Mask 

Source
pub trait Mask {
    type Output;

    // Required method
    fn mask(&self, other: &Self) -> Self::Output;
}
Expand description

Masking one object with another

Required Associated Types§

Source

type Output

The result of masking

Required Methods§

Source

fn mask(&self, other: &Self) -> Self::Output

Perform the mask

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Mask for IpAddr

Source§

type Output = Result<IpAddr, &'static str>

Source§

fn mask(&self, other: &Self) -> Self::Output

Source§

impl Mask for Ipv4Addr

Source§

type Output = Ipv4Addr

Source§

fn mask(&self, other: &Self) -> Self::Output

Source§

impl Mask for Ipv6Addr

Source§

type Output = Ipv6Addr

Source§

fn mask(&self, other: &Self) -> Self::Output

Implementors§