cidr::parsers

Function parse_short_ip_address_as_cidr

Source
pub fn parse_short_ip_address_as_cidr(
    s: &str,
) -> Result<IpCidr, NetworkParseError>
Expand description

Parses normal IP addresses as host addresses, and short IPv4 addresses via parse_short_ipv4_address_as_cidr

This function doesn’t accept normal CIDR notations, so you will probably need to combine it with other functions.