cidr::parsers

Function parse_any_cidr_ignore_hostbits

Source
pub fn parse_any_cidr_ignore_hostbits<AP>(
    s: &str,
    address_parser: AP,
) -> Result<AnyIpCidr, NetworkParseError>
where AP: Fn(&str) -> Result<IpAddr, AddrParseError>,
Expand description

Parse AnyIpCidr with custom address parser

Similar to parse_any_cidr but ignores host bits in addresses.