pub fn contains(&self, ip: IpAddr, strict: bool) -> bool {
        let contains = self.apply_mask(ip, false, false) == self.ip;
        match strict {
            false => contains,
            true => contains && ip != self.ip && ip != self.broadcast(),
        }
    }
/// Return whether or not the given IP address is contained within this
/// network. If strict=true, then the "network address" and "broadcast
/// address" are both not considered to be "within" this network (this is
/// useful if you want to check if the given IP address is actually usable
/// for a host on the network).
Return whether or not the given IP address is contained within this
network.
Return whether or not the given IP address is contained within this network .
pub fn contains(&self, ip: IpAddr, strict: bool) -> bool {
        let contains = self.apply_mask(ip, false, false) == self.ip;
        match strict {
            false => contains,
            true => contains && ip != self.ip && ip != self.broadcast(),
        }
    }
pub fn contains ( & self , ip : IpAddr , strict : bool ) -> bool { let contains = self . apply_mask ( ip , false , false ) == self . ip ; match strict { false => contains , true => contains && ip != self . ip && ip != self . broadcast ( ) , } }
Return whether or not the given IP address is contained within this
network.
Return whether or not the given IP address is contained within this network .
&self
ip
IpAddr
strict
bool
&self
ip
IpAddr
strict
bool