pub trait ChunkComponentSlicer {
type Item<'a>;
// Required method
fn slice<'a>(
component_descriptor: ComponentDescriptor,
array: &'a dyn ArrowArray,
component_spans: impl Iterator<Item = Span<usize>> + 'a,
) -> impl Iterator<Item = Self::Item<'a>> + 'a;
}
Expand description
A ChunkComponentSlicer
knows how to efficiently slice component batches out of a Chunk column.
See Chunk::iter_slices
and Chunk::iter_slices_from_struct_field
.
Required Associated Types§
Required Methods§
fn slice<'a>( component_descriptor: ComponentDescriptor, array: &'a dyn ArrowArray, component_spans: impl Iterator<Item = Span<usize>> + 'a, ) -> impl Iterator<Item = Self::Item<'a>> + 'a
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.