Home
last modified time | relevance | path

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

/external/rust/android-crates-io/crates/ipnet/src/
Dipnet.rs84 pub struct Ipv4Net { struct
85 addr: Ipv4Addr,
86 prefix_len: u8,
607 impl Ipv4Net { impl
624 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 …]
Dipnet_schemars.rs16 impl JsonSchema for Ipv4Net { implementation
Dparser.rs263 fn read_ipv4_net(&mut self) -> Option<Ipv4Net> { in read_ipv4_net()
311 impl FromStr for Ipv4Net { implementation
313 fn from_str(s: &str) -> Result<Ipv4Net, AddrParseError> { in from_str()
Dipnet_serde.rs82 impl Serialize for Ipv4Net { implementation
106 impl<'de> Deserialize<'de> for Ipv4Net { implementation