pub struct QueriableDataStore<T> { /* private fields */ }
Expand description
Data structure that can be queried by multiple filters. Its not allowed to modify data after the generation of the data store.
Implementations§
Source§impl<T> QueriableDataStore<T>
impl<T> QueriableDataStore<T>
Sourcepub fn filter(&self, filter: DataFilter) -> impl Iterator<Item = &T>
pub fn filter(&self, filter: DataFilter) -> impl Iterator<Item = &T>
Get all entries of the DataStore that match the filter.
Sourcepub fn get_index<F, U>(&self, index_provider: F) -> SortedIndex<U>
pub fn get_index<F, U>(&self, index_provider: F) -> SortedIndex<U>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for QueriableDataStore<T>
impl<T> RefUnwindSafe for QueriableDataStore<T>where
T: RefUnwindSafe,
impl<T> Send for QueriableDataStore<T>where
T: Send,
impl<T> Sync for QueriableDataStore<T>where
T: Sync,
impl<T> Unpin for QueriableDataStore<T>where
T: Unpin,
impl<T> UnwindSafe for QueriableDataStore<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more