Pfx.is_pfx

You're seeing just the macro is_pfx, go back to Pfx module for more information.

Guard that ensures a given pfx is actually valid.

  • it is a Pfx.t/0 struct,
  • pfx.maxlen is a t:non-neg-integer/0,
  • pfx.maxlen is >= 0, and
  • bit_size(pfx.bits) <= pfx.maxlen