Mac.is_mac
You're seeing just the macro
is_mac
, go back to Mac module for more information.
Specs
checks to see if a value is a mac address.
usable in guards.
iex> Mac.is_mac({10, 0, 0, 1, 1, 1})
true
iex> Mac.is_mac(:foo)
false
iex> Mac.is_mac({0x100, 0, 0, 1, 1, 1})
false
iex> Mac.is_mac({10, 0, 0, 1, 1, 1, 1})
false