IP.Subnet.is_subnet

You're seeing just the macro is_subnet, go back to IP.Subnet module for more information.
Link to this macro

is_subnet(subnet)

View Source (macro)

Specs

is_subnet(any()) :: Macro.t()

true if the term is a subnet struct, and it's valid.

usable in guards.

iex> import IP
iex> IP.Subnet.is_subnet(~i"10.0.0.0/32")
true
iex> IP.Subnet.is_subnet(:foo)
false
iex> IP.Subnet.is_subnet(%IP.Subnet{routing_prefix: {10, 0, 0, 0}, bit_length: 33})
false