fn to_cidr(ip: IpAddr, prefix_len: u8) -> Option<String>
Formats ip in CIDR notation with the host bits cleared, or returns None if prefix_len is longer than the address.
ip
None
prefix_len