Trait re_space_view::RangeResultsExt

source ·
pub trait RangeResultsExt {
    // Required methods
    fn get_required_chunks(
        &self,
        component_name: &ComponentName
    ) -> Option<Cow<'_, [Chunk]>>;
    fn get_optional_chunks(
        &self,
        component_name: &ComponentName
    ) -> Cow<'_, [Chunk]>;

    // Provided method
    fn iter_as(
        &self,
        timeline: Timeline,
        component_name: ComponentName
    ) -> HybridResultsChunkIter<'_> { ... }
}
Expand description

Extension traits to abstract query result handling for all spatial space views.

Also turns all results into range results, so that views only have to worry about the ranged case.

Required Methods§

source

fn get_required_chunks( &self, component_name: &ComponentName ) -> Option<Cow<'_, [Chunk]>>

Returns component data for the given component, ignores default data if the result distinguishes them.

For results that are aware of the blueprint, only overrides & store results will be considered. Defaults have no effect.

source

fn get_optional_chunks( &self, component_name: &ComponentName ) -> Cow<'_, [Chunk]>

Returns component data for the given component or an empty array.

For results that are aware of the blueprint, overrides, store results, and defaults will be considered.

Provided Methods§

source

fn iter_as( &self, timeline: Timeline, component_name: ComponentName ) -> HybridResultsChunkIter<'_>

Returns a zero-copy iterator over all the results for the given (timeline, component) pair.

Call one of the following methods on the returned HybridResultsChunkIter:

Implementors§