pub(super) fn encode(array: &StructArray) -> Result<Vec<u8>>
Encodes a native histogram struct column. All rows are encoded, null rows included, and the struct validity is kept apart from the children’s own validity.