NetAddr.netaddr_to_string
You're seeing just the function
netaddr_to_string
, go back to NetAddr module for more information.
Specs
Returns a human-readable CIDR or pseudo-CIDR for
netaddr
.
This is like NetAddr.prefix/1
except host bits are not
set to zero. All String.Chars
implementations call this
function.
Examples
iex> NetAddr.netaddr_to_string %NetAddr.Generic{address: <<1, 2, 3, 4, 5>>, length: 32}
"0x0102030405/32"