IP.Subnet.new
You're seeing just the function
new
, go back to IP.Subnet module for more information.
Specs
creates a new IP Subnet struct from a routing prefix and bit length.
The routing prefix must be an actual routing prefix for the bit length,
otherwise it will raise ArgumentError
. If you are attempting to find the
subnet for a given ip address, use of/2