Home
last modified time | relevance | path

Searched defs:IpNet (Results 1 – 4 of 4) sorted by relevance

/external/rust/android-crates-io/crates/ipnet/src/
Dipnet.rs51 pub enum IpNet { enum
133 impl IpNet { implementation
149 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 { implementation
571 impl fmt::Debug for IpNet { implementation
[all …]
Dipnet_schemars.rs70 impl JsonSchema for IpNet { implementation
Dparser.rs290 fn read_ip_net(&mut self) -> Option<IpNet> { in read_ip_net()
301 impl FromStr for IpNet { implementation
303 fn from_str(s: &str) -> Result<IpNet, AddrParseError> { in from_str()
Dipnet_serde.rs11 impl Serialize for IpNet { implementation
29 impl<'de> Deserialize<'de> for IpNet { implementation