Searched defs:Ipv4Net (Results 1 – 4 of 4) sorted by relevance
84 pub struct Ipv4Net { struct85 addr: Ipv4Addr,86 prefix_len: u8,607 impl Ipv4Net { impl624 pub const fn new(ip: Ipv4Addr, prefix_len: u8) -> Result<Ipv4Net, PrefixLenError> { in new()657 pub const fn new_assert(ip: Ipv4Addr, prefix_len: u8) -> Ipv4Net { in new_assert()676 pub fn with_netmask(ip: Ipv4Addr, netmask: Ipv4Addr) -> Result<Ipv4Net, PrefixLenError> { in with_netmask()694 pub fn trunc(&self) -> Ipv4Net { in trunc()798 pub fn supernet(&self) -> Option<Ipv4Net> { in supernet()952 pub fn aggregate(networks: &Vec<Ipv4Net>) -> Vec<Ipv4Net> { in aggregate()[all …]
16 impl JsonSchema for Ipv4Net { implementation
263 fn read_ipv4_net(&mut self) -> Option<Ipv4Net> { in read_ipv4_net()311 impl FromStr for Ipv4Net { implementation313 fn from_str(s: &str) -> Result<Ipv4Net, AddrParseError> { in from_str()
82 impl Serialize for Ipv4Net { implementation106 impl<'de> Deserialize<'de> for Ipv4Net { implementation