Std.Ip.parseNetwork
1 declaration
fn
parseNetwork: Str -> Result[Std.Ip.Network, Std.Ip.IpError]Read a network written as address/prefix.
Host bits past the prefix are refused rather than cleared: 10.1.2.3/8 is almost always a typo for a narrower rule, and silently widening it to 10.0.0.0/8 grants far more than was meant. networkOf clears them for a caller who means to. A bare address is its own single-address network.
