Searched defs:IpNet (Results 1 – 4 of 4) sorted by relevance
51 pub enum IpNet { enum133 impl IpNet { implementation149 pub fn new(ip: IpAddr, prefix_len: u8) -> Result<IpNet, PrefixLenError> { in new()181 pub const fn new_assert(ip: IpAddr, prefix_len: u8) -> IpNet { in new_assert()202 pub fn with_netmask(ip: IpAddr, netmask: IpAddr) -> Result<IpNet, PrefixLenError> { in with_netmask()225 pub fn trunc(&self) -> IpNet { in trunc()361 pub fn supernet(&self) -> Option<IpNet> { in supernet()542 pub fn aggregate(networks: &Vec<IpNet>) -> Vec<IpNet> { in aggregate()565 impl Default for IpNet { implementation571 impl fmt::Debug for IpNet { implementation[all …]
70 impl JsonSchema for IpNet { implementation
290 fn read_ip_net(&mut self) -> Option<IpNet> { in read_ip_net()301 impl FromStr for IpNet { implementation303 fn from_str(s: &str) -> Result<IpNet, AddrParseError> { in from_str()
11 impl Serialize for IpNet { implementation29 impl<'de> Deserialize<'de> for IpNet { implementation