pub fn ip_to_numeric<S>(ip: S) -> Result<u32> where
    S: Into<String>, 
Expand description

Convert an characrter IPv4 address into an integer.

Panics on invalid address since it’s in a CLI.

let res = ip_to_numeric("192.168.1.1");
# 3232235777