NetAddr.is_host_address
You're seeing just the function
is_host_address
, go back to NetAddr module for more information.
Specs
Tests whether netaddr
has length equal to its size in
bits.
Examples
iex> NetAddr.is_host_address NetAddr.ip("0.0.0.0/0")
false
iex> NetAddr.is_host_address NetAddr.ip("192.0.2.1")
true
iex> NetAddr.is_host_address NetAddr.ip("fe80:0:c100::c401")
true
iex> NetAddr.is_host_address NetAddr.ip("::/0")
false