Struct rin::ecs::storage::AutoChanged [−][src]
pub struct AutoChanged<S, T> { /* fields omitted */ }
Trait Implementations
impl<'a, S, T> AutoChangedStorageExt<'a> for AutoChanged<S, T> where
T: Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::Get: HasChanged,
[src]
impl<'a, S, T> AutoChangedStorageExt<'a> for AutoChanged<S, T> where
T: Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::Get: HasChanged,
[src]pub fn update_changed(&mut self)
[src]
impl<'a, S, T> ChangedStorageExt<'a> for AutoChanged<S, T> where
T: Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::Get: HasChanged,
[src]
impl<'a, S, T> ChangedStorageExt<'a> for AutoChanged<S, T> where
T: Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::Get: HasChanged,
[src]pub fn changed_entities(&self) -> Iter<'_, usize>
[src]
impl<'a, S, T> HierarchicalStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: HierarchicalStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]
impl<'a, S, T> HierarchicalStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: HierarchicalStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]pub unsafe fn insert_child(&mut self, parent_guid: usize, guid: usize, value: T)
[src]
pub unsafe fn get_node(&self, guid: usize) -> NodeRef<'_, T>
[src]
pub unsafe fn get_node_mut(&mut self, guid: usize) -> NodeRefMut<'_, T>
[src]
pub unsafe fn fast_get_node(&self, idx: NodeId) -> NodeRef<'_, T>
[src]
pub unsafe fn fast_get_node_mut(&mut self, idx: NodeId) -> NodeRefMut<'_, T>
[src]
pub unsafe fn guid_for(&self, nodeid: NodeId) -> usize
[src]
pub unsafe fn ordered_fast_index(&self, guid: usize) -> NodeId
[src]
pub fn ordered_ids(&self) -> ReadGuardRef<'_, Vec<OrderedId<NodeId>, Global>>
[src]
impl<'a, S, T> OneToNStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: OneToNStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]
impl<'a, S, T> OneToNStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: OneToNStorage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]pub fn insert_slice<I>(&mut self, guid: usize, t: I) where
I: IntoIterator<Item = T>,
[src]
I: IntoIterator<Item = T>,
pub unsafe fn get_slice(&self, guid: usize) -> SliceView<'_, T>
[src]
pub unsafe fn get_slice_mut(&mut self, guid: usize) -> SliceViewMut<'_, T>
[src]
impl<'a, T, S> ParStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component + Sync + Send,
S: ParStorage<'a, T> + Storage<'a, T>,
<S as Storage<'a, T>>::Get: Send,
<S as Storage<'a, T>>::GetMut: Changes,
<S as Storage<'a, T>>::GetMut: Send,
[src]
impl<'a, T, S> ParStorage<'a, T> for AutoChanged<S, T> where
T: 'a + Component + Sync + Send,
S: ParStorage<'a, T> + Storage<'a, T>,
<S as Storage<'a, T>>::Get: Send,
<S as Storage<'a, T>>::GetMut: Changes,
<S as Storage<'a, T>>::GetMut: Send,
[src]type ParIter = <S as ParStorage<'a, T>>::ParIter
type ParIterMut = <S as ParStorage<'a, T>>::ParIterMut
pub fn par_iter(&self) -> <AutoChanged<S, T> as ParStorage<'a, T>>::ParIter
[src]
pub fn par_iter_mut(
&mut self
) -> <AutoChanged<S, T> as ParStorage<'a, T>>::ParIterMut
[src]
&mut self
) -> <AutoChanged<S, T> as ParStorage<'a, T>>::ParIterMut
impl<'a, T, S> Storage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]
impl<'a, T, S> Storage<'a, T> for AutoChanged<S, T> where
T: 'a + Component,
S: Storage<'a, T>,
<S as Storage<'a, T>>::GetMut: Changes,
[src]type Get = <S as Storage<'a, T>>::Get
type GetMut = <S as Storage<'a, T>>::GetMut
type DerefTarget = <S as Storage<'a, T>>::DerefTarget
type IdedIter = <S as Storage<'a, T>>::IdedIter
type Iter = <S as Storage<'a, T>>::Iter
type IterMut = <S as Storage<'a, T>>::IterMut
pub fn new() -> AutoChanged<S, T>
[src]
pub fn with_capacity(capacity: usize) -> AutoChanged<S, T>
[src]
pub fn insert(&mut self, guid: usize, t: T)
[src]
pub fn remove(&mut self, guid: usize)
[src]
pub unsafe fn get(&self, guid: usize) -> <S as Storage<'a, T>>::Get
[src]
pub unsafe fn get_mut(&mut self, guid: usize) -> <S as Storage<'a, T>>::GetMut
[src]
pub unsafe fn fast_get(&self, idx: usize) -> <S as Storage<'a, T>>::Get
[src]
pub unsafe fn fast_get_mut(
&mut self,
idx: usize
) -> <S as Storage<'a, T>>::GetMut
[src]
&mut self,
idx: usize
) -> <S as Storage<'a, T>>::GetMut
pub fn fast_index(&self, guid: usize) -> usize
[src]
pub fn guid_from_fast_index(&self, idx: usize) -> usize
[src]
pub fn contains(&self, guid: usize) -> bool
[src]
pub fn update(&mut self)
[src]
pub fn tracks_changes() -> bool
[src]
pub fn storage_changed(&self) -> bool
[src]
pub fn ided_iter(&self) -> <AutoChanged<S, T> as Storage<'a, T>>::IdedIter
[src]
pub fn iter(&self) -> <AutoChanged<S, T> as Storage<'a, T>>::Iter
[src]
pub fn iter_mut(&mut self) -> <AutoChanged<S, T> as Storage<'a, T>>::IterMut
[src]
Auto Trait Implementations
impl<S, T> RefUnwindSafe for AutoChanged<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for AutoChanged<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for AutoChanged<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S, T> Unpin for AutoChanged<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for AutoChanged<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]