Struct qecs::with_dirty_state::WithDirtyState
[−]
[src]
pub struct WithDirtyState<S: StoreBase> { /* fields omitted */ }
Trait Implementations
impl<S> From<S> for WithDirtyState<S> where
S: StoreBase,
[src]
S: StoreBase,
fn from(store: S) -> Self
Performs the conversion.
impl<S> Default for WithDirtyState<S> where
S: StoreBase + Default,
[src]
S: StoreBase + Default,
impl<S> ServiceBase for WithDirtyState<S> where
S: StoreBase,
[src]
S: StoreBase,
fn on_before_frame(&mut self)
fn on_after_frame(&mut self)
impl<S> StoreBase for WithDirtyState<S> where
S: StoreBase,
[src]
S: StoreBase,
type Id = S::Id
fn len(&self) -> usize
fn is_assigned<'id>(&self, id: Valid<'id, Self::Id>) -> bool
fn release_drop<'id>(&mut self, id: Valid<'id, Self::Id>) -> bool
A variant of .release(id)
which drops the returned component. Returns true
if sucessful. Read more
fn clear(&mut self)
impl<'a, S> _ComponentStore<'a> for WithDirtyState<S> where
S: _ComponentStore<'a>,
[src]
S: _ComponentStore<'a>,
impl<S> ComponentStore for WithDirtyState<S> where
S: ComponentStore,
[src]
S: ComponentStore,
type Value = S::Value
fn assign<'id, T>(
&mut self,
id: Valid<'id, Self::Id>,
com: T
) -> Option<Self::Value> where
T: Into<Self::Value>,
&mut self,
id: Valid<'id, Self::Id>,
com: T
) -> Option<Self::Value> where
T: Into<Self::Value>,
fn release<'id>(&mut self, id: Valid<'id, Self::Id>) -> Option<Self::Value>
fn get<'id>(&self, id: Valid<'id, Self::Id>) -> Option<&Self::Value>
Returns None
if id
is not assigned.
fn get_mut<'id>(&mut self, id: Valid<'id, Self::Id>) -> Option<&mut Self::Value>
Returns None
if id
is not assigned.
fn values<'a>(&'a self) -> Self::Values
fn values_mut<'a>(&'a mut self) -> Self::ValuesMut
impl<'a, S> _ComponentStoreIter<'a> for WithDirtyState<S> where
S: _ComponentStoreIter<'a>,
[src]
S: _ComponentStoreIter<'a>,
impl<S> ComponentStoreIter for WithDirtyState<S> where
S: ComponentStoreIter,
[src]
S: ComponentStoreIter,
impl<S> EntityStore for WithDirtyState<S> where
S: EntityStore,
[src]
S: EntityStore,
fn assign<'id>(&mut self, id: Valid<'id, Self::Id>) -> bool
fn release<'id>(&mut self, id: Valid<'id, Self::Id>) -> bool
impl<'a, S> _EntityStoreIter<'a> for WithDirtyState<S> where
S: _EntityStoreIter<'a>,
[src]
S: _EntityStoreIter<'a>,
impl<S> EntityStoreIter for WithDirtyState<S> where
S: EntityStoreIter,
[src]
S: EntityStoreIter,
impl<'a, S> _StoreWithDirtyState<'a> for WithDirtyState<S> where
S: StoreBase,
[src]
S: StoreBase,
type DirtyEntities = DirtyEntities<'a, S::Id>
impl<S> StoreWithDirtyState for WithDirtyState<S> where
S: StoreBase,
[src]
S: StoreBase,
fn was_cleared(&self) -> bool
fn dirty_entities<'a>(&'a self) -> Self::DirtyEntities
impl<'a, S> IntoIterator for &'a WithDirtyState<S> where
S: StoreBase,
&'a S: IntoIterator,
[src]
S: StoreBase,
&'a S: IntoIterator,