pub fn dict_encode_with_constraints( array: &dyn Array, constraints: &DictConstraints, ) -> VortexResult<DictArray>