cidr::parsers

Function parse_cidr_full_ignore_hostbits

source
pub fn parse_cidr_full_ignore_hostbits<C, AP, HP>(
    s: &str,
    address_parser: AP,
    host_parser: HP,
) -> Result<C, NetworkParseError>
where C: Cidr, AP: FnOnce(&str) -> Result<C::Address, AddrParseError>, HP: FnOnce(&str) -> Result<C, NetworkParseError>,
Expand description

Parse Cidr with custom address and network (when no ‘/’ separator was found) parser

Similar to parse_cidr_full but ignores host bits in addresses.