Caches

Struct Caches 

Source
pub struct Caches { /* private fields */ }
Expand description

Maintains the top-level cache mappings.

Implementations§

Source§

impl Caches

Source

pub fn new(store: &DataStore) -> Self

Source§

impl Caches

Source

pub fn clear(&self)

Clears all caches.

Source

pub fn with_latest_at<A, F1, F2, R1, R2>( &self, store: &DataStore, entity_path: EntityPath, query: &LatestAtQuery, upsert: F1, iter: F2, ) -> (Option<R1>, R2)
where A: Archetype, F1: FnMut(&mut LatestAtCache) -> R1, F2: FnMut(&LatestAtCache) -> R2,

Gives access to the appropriate LatestAtCache according to the specified query parameters.

upsert is a user-defined callback that will be run first, with full mutable access to the cache. iter is a user-defined callback that will be run last, with shared access.

These callback semantics allow for reentrancy: you can use the same cache from multiple query contexts (i.e. space views), even in a work-stealing environment.

Source

pub fn with_range<A, F1, F2, R1, R2>( &self, store: &DataStore, entity_path: EntityPath, query: &RangeQuery, upsert: F1, iter: F2, ) -> (Option<R1>, R2)
where A: Archetype, F1: FnMut(&mut RangeCache) -> R1, F2: FnMut(&RangeCache) -> R2,

Gives access to the appropriate RangeCache according to the specified query parameters.

upsert is a user-defined callback that will be run first, with full mutable access to the cache. iter is a user-defined callback that will be run last, with shared access.

These callback semantics allow for reentrancy: you can use the same cache from multiple query contexts (i.e. space views), even in a work-stealing environment.

Source§

impl Caches

Source

pub fn stats(&self, detailed_stats: bool) -> CachesStats

Computes the stats for all primary caches.

per_component toggles per-component stats.

Source§

impl Caches

Source

pub fn query_archetype_latest_at_pov1_comp0<'a, A, R1, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1])),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 0 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp1<'a, A, R1, C1, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 1 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp2<'a, A, R1, C1, C2, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 2 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp3<'a, A, R1, C1, C2, C3, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 3 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp4<'a, A, R1, C1, C2, C3, C4, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 4 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp5<'a, A, R1, C1, C2, C3, C4, C5, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 5 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp6<'a, A, R1, C1, C2, C3, C4, C5, C6, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 6 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp7<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 7 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp8<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 8 optional components.

Source

pub fn query_archetype_latest_at_pov1_comp9<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, C9, F>( &self, store: &'a DataStore, query: &LatestAtQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, C9: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>, Option<&[Option<C9>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 9 optional components.

Source§

impl Caches

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view component and no optional components.

Source

pub fn query_archetype_pov1<'a, A, R1, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1])),

Source§

impl Caches

Source

pub fn query_archetype_pov1_comp0<'a, A, R1, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1])),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 0 optional components.

Source

pub fn query_archetype_pov1_comp1<'a, A, R1, C1, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 1 optional components.

Source

pub fn query_archetype_pov1_comp2<'a, A, R1, C1, C2, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 2 optional components.

Source

pub fn query_archetype_pov1_comp3<'a, A, R1, C1, C2, C3, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 3 optional components.

Source

pub fn query_archetype_pov1_comp4<'a, A, R1, C1, C2, C3, C4, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 4 optional components.

Source

pub fn query_archetype_pov1_comp5<'a, A, R1, C1, C2, C3, C4, C5, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 5 optional components.

Source

pub fn query_archetype_pov1_comp6<'a, A, R1, C1, C2, C3, C4, C5, C6, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 6 optional components.

Source

pub fn query_archetype_pov1_comp7<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 7 optional components.

Source

pub fn query_archetype_pov1_comp8<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 8 optional components.

Source

pub fn query_archetype_pov1_comp9<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, C9, F>( &self, store: &'a DataStore, query: &AnyQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, C9: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>, Option<&[Option<C9>]>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 9 optional components.

Source§

impl Caches

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view component and no optional components.

Source

pub fn query_archetype_with_history_pov1<'a, A, R1, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1])),

Source§

impl Caches

Source

pub fn query_archetype_with_history_pov1_comp0<'a, A, R1, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1])),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 0 optional components.

Source

pub fn query_archetype_with_history_pov1_comp1<'a, A, R1, C1, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 1 optional components.

Source

pub fn query_archetype_with_history_pov1_comp2<'a, A, R1, C1, C2, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 2 optional components.

Source

pub fn query_archetype_with_history_pov1_comp3<'a, A, R1, C1, C2, C3, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 3 optional components.

Source

pub fn query_archetype_with_history_pov1_comp4<'a, A, R1, C1, C2, C3, C4, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 4 optional components.

Source

pub fn query_archetype_with_history_pov1_comp5<'a, A, R1, C1, C2, C3, C4, C5, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 5 optional components.

Source

pub fn query_archetype_with_history_pov1_comp6<'a, A, R1, C1, C2, C3, C4, C5, C6, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 6 optional components.

Source

pub fn query_archetype_with_history_pov1_comp7<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 7 optional components.

Source

pub fn query_archetype_with_history_pov1_comp8<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 8 optional components.

Source

pub fn query_archetype_with_history_pov1_comp9<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, C9, F>( &self, store: &'a DataStore, timeline: &'a Timeline, time: &'a TimeInt, history: &ExtraQueryHistory, ent_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, C9: Component + Send + Sync + 'static, F: FnMut(((Option<TimeInt>, RowId), &[InstanceKey], &[R1], Option<&[Option<C1>]>, Option<&[Option<C2>]>, Option<&[Option<C3>]>, Option<&[Option<C4>]>, Option<&[Option<C5>]>, Option<&[Option<C6>]>, Option<&[Option<C7>]>, Option<&[Option<C8>]>, Option<&[Option<C9>]>)),

Cached implementation of re_query::query_archetype_with_history for 1 point-of-view components and 9 optional components.

Source§

impl Caches

Source

pub fn query_archetype_range_pov1_comp0<'a, A, R1, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 0 optional components.

Source

pub fn query_archetype_range_pov1_comp1<'a, A, R1, C1, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 1 optional components.

Source

pub fn query_archetype_range_pov1_comp2<'a, A, R1, C1, C2, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 2 optional components.

Source

pub fn query_archetype_range_pov1_comp3<'a, A, R1, C1, C2, C3, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 3 optional components.

Source

pub fn query_archetype_range_pov1_comp4<'a, A, R1, C1, C2, C3, C4, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 4 optional components.

Source

pub fn query_archetype_range_pov1_comp5<'a, A, R1, C1, C2, C3, C4, C5, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>, Option<&FlatVecDeque<Option<C5>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 5 optional components.

Source

pub fn query_archetype_range_pov1_comp6<'a, A, R1, C1, C2, C3, C4, C5, C6, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>, Option<&FlatVecDeque<Option<C5>>>, Option<&FlatVecDeque<Option<C6>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 6 optional components.

Source

pub fn query_archetype_range_pov1_comp7<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>, Option<&FlatVecDeque<Option<C5>>>, Option<&FlatVecDeque<Option<C6>>>, Option<&FlatVecDeque<Option<C7>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 7 optional components.

Source

pub fn query_archetype_range_pov1_comp8<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>, Option<&FlatVecDeque<Option<C5>>>, Option<&FlatVecDeque<Option<C6>>>, Option<&FlatVecDeque<Option<C7>>>, Option<&FlatVecDeque<Option<C8>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 8 optional components.

Source

pub fn query_archetype_range_pov1_comp9<'a, A, R1, C1, C2, C3, C4, C5, C6, C7, C8, C9, F>( &self, store: &'a DataStore, query: &RangeQuery, entity_path: &'a EntityPath, f: F, ) -> Result<()>
where A: Archetype + 'a, R1: Component + Send + Sync + 'static, C1: Component + Send + Sync + 'static, C2: Component + Send + Sync + 'static, C3: Component + Send + Sync + 'static, C4: Component + Send + Sync + 'static, C5: Component + Send + Sync + 'static, C6: Component + Send + Sync + 'static, C7: Component + Send + Sync + 'static, C8: Component + Send + Sync + 'static, C9: Component + Send + Sync + 'static, F: FnMut(bool, Range<usize>, (&VecDeque<(TimeInt, RowId)>, &FlatVecDeque<InstanceKey>, &FlatVecDeque<R1>, Option<&FlatVecDeque<Option<C1>>>, Option<&FlatVecDeque<Option<C2>>>, Option<&FlatVecDeque<Option<C3>>>, Option<&FlatVecDeque<Option<C4>>>, Option<&FlatVecDeque<Option<C5>>>, Option<&FlatVecDeque<Option<C6>>>, Option<&FlatVecDeque<Option<C7>>>, Option<&FlatVecDeque<Option<C8>>>, Option<&FlatVecDeque<Option<C9>>>)),

Cached implementation of re_query::query_archetype and re_query::range_archetype (combined) for 1 point-of-view components and 9 optional components.

Trait Implementations§

Source§

impl Debug for Caches

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Caches

Source§

type Target = RwLock<RawRwLock, HashMap<CacheKey, Arc<RwLock<RawRwLock, CachesPerArchetype>>, RandomState>>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl StoreSubscriber for Caches

Source§

fn name(&self) -> String

Arbitrary name for the subscriber. Read more
Source§

fn as_any(&self) -> &dyn Any

Workaround for downcasting support, simply return self: Read more
Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Workaround for downcasting support, simply return self: Read more
Source§

fn on_events(&mut self, events: &[StoreEvent])

The core of this trait: get notified of changes happening in all DataStores. Read more

Auto Trait Implementations§

§

impl !Freeze for Caches

§

impl !RefUnwindSafe for Caches

§

impl Send for Caches

§

impl Sync for Caches

§

impl Unpin for Caches

§

impl !UnwindSafe for Caches

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.