pub fn validity_nchildren(validity: &Validity) -> usize
Returns 1 if validity produces a child, 0 otherwise.