Iptrie.has_type-question-mark
You're seeing just the function
has_type-question-mark
, go back to Iptrie module for more information.
Specs
Returns true if trie
has given type
, false otherwise.
An Iptrie groups prefixes into radix trees by their maxlen property, also
known as the type of prefix. Use Iptrie.types/1
to get a list of all
available types.
Example
iex> t = new([{"1.1.1.1", 1}])
iex> has_type?(t, 32)
true
iex> has_type?(t, 128)
false