fn enum_field_reader_capable(erf: &EnumResolvedField) -> boolExpand description
Check whether an enum field is reader-capable.
Mirrors field_reader_capable from dataframe_derive.rs but for EnumResolvedField.
Key differences vs the struct path:
Singleenum fields are alwaysVec<Option<ty>>(even non-factor) because the writer wraps every cell inOption; so we only needis_reader_scalar_ty(which accepts both bare scalars andOption<scalar>).is_factorSingle fields are reader-capable iff the inner type satisfiesUnitEnumFactor— guaranteed by the derive for unit-only enums.Mapfields are reader-capable iff bothKandVare bare scalar element types: the reader regroups the<base>_keys/<base>_valueslist-columns (each row aVec<K>/Vec<V>) back into the map viaVec<elem>: TryFromSexp.Option-wrapped key/value element types are excluded (the writer emits them, but the reader path is restricted to the round-trippable bare-scalar set).