pub struct PropertyStore<E: Entity> { /* private fields */ }Expand description
A wrapper around a vector of property value stores.
Implementations§
Source§impl<E: Entity> PropertyStore<E>
impl<E: Entity> PropertyStore<E>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new PropertyStore.
Sourcepub fn get<P: Property<E>>(&self) -> &PropertyValueStoreCore<E, P>
pub fn get<P: Property<E>>(&self) -> &PropertyValueStoreCore<E, P>
Fetches an immutable reference to the PropertyValueStoreCore<E, P>.
Sourcepub fn get_mut<P: Property<E>>(&mut self) -> &mut PropertyValueStoreCore<E, P>
pub fn get_mut<P: Property<E>>(&mut self) -> &mut PropertyValueStoreCore<E, P>
Fetches a mutable reference to the PropertyValueStoreCore<E, P>.
Sourcepub fn create_value_change_counter<PL, P>(&mut self) -> usize
pub fn create_value_change_counter<PL, P>(&mut self) -> usize
Creates a stratified value change counter for tracked property P with strata PL.
Returns the counter ID.
pub fn get_index_set_for_query_parts( &self, property_id: usize, query_parts: &[&dyn Any], ) -> IndexSetResult<'_, E>
pub fn get_index_count_for_query_parts( &self, property_id: usize, query_parts: &[&dyn Any], ) -> IndexCountResult
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for PropertyStore<E>
impl<E> !RefUnwindSafe for PropertyStore<E>
impl<E> !Send for PropertyStore<E>
impl<E> !Sync for PropertyStore<E>
impl<E> Unpin for PropertyStore<E>
impl<E> UnsafeUnpin for PropertyStore<E>
impl<E> !UnwindSafe for PropertyStore<E>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.