Skip to main content

require_validity

Macro require_validity 

Source
macro_rules! require_validity {
    ($parent:expr, $idx:expr) => { ... };
}
Expand description

Require that the validity slot is columnar (Bool or Constant). If validity is not array-backed (e.g. NonNullable or AllValid), or is already a constant bool array (e.g. AllInvalid), this is a no-op. Otherwise, early-returns an ExecutionResult requesting execution of the validity slot.

Like require_opt_child!, $parent is moved (not cloned) into the early-return path.

ⓘ
require_validity!(array, MySlots::VALIDITY);