Searched refs:contains_subnet (Results 1 – 3 of 3) sorted by relevance
375 pub fn contains_subnet(&self, subnet: &Cidr) -> bool { in contains_subnet() method1042 assert!(cidr.contains_subnet(&subnet)); in test_cidr()1046 assert!(!cidr.contains_subnet(&subnet)); in test_cidr()
263 pub fn contains_subnet(&self, subnet: &Cidr) -> bool { in contains_subnet() method997 assert!(cidr.contains_subnet(&subnet)); in test_cidr()1004 assert!(!cidr.contains_subnet(&subnet)); in test_cidr()
326 pub fn contains_subnet(&self, subnet: &Cidr) -> bool { in contains_subnet() method329 (Cidr::Ipv4(cidr), Cidr::Ipv4(other)) => cidr.contains_subnet(other), in contains_subnet()331 (Cidr::Ipv6(cidr), Cidr::Ipv6(other)) => cidr.contains_subnet(other), in contains_subnet()