Trait rerun::external::re_chunk::ChunkComponentSlicer
source · pub trait ChunkComponentSlicer {
type Item<'a>;
// Required method
fn slice<'a>(
component_name: ComponentName,
array: &'a dyn Array,
component_offsets: impl Iterator<Item = (usize, 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_name: ComponentName, array: &'a dyn Array, component_offsets: impl Iterator<Item = (usize, usize)> + 'a, ) -> impl Iterator<Item = Self::Item<'a>> + 'a
Object Safety§
This trait is not object safe.