fn collect_window_histograms( histograms: &StructArray, offset: usize, length: usize, ) -> Result<Option<Vec<NativeHistogram>>>