IP.Subnet.from_string-exclamation-mark

You're seeing just the function from_string-exclamation-mark, go back to IP.Subnet module for more information.
Link to this function

from_string!(subnet_str)

View Source

Specs

from_string!(String.t()) :: t() | no_return()

converts a string to an ip subnet.

checks if the values are sensible.

iex> import IP
iex> IP.Subnet.from_string!("10.0.0.0/24")
%IP.Subnet{
  routing_prefix: {10, 0, 0, 0},
  bit_length: 24
}