Struct rin::ecs::CreationSto [−][src]
pub struct CreationSto<'a, C> where
C: Component, { /* fields omitted */ }
Implementations
impl<'a, C> CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]
impl<'a, C> CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]pub fn add_component(&mut self, entity: &Entity, component: C)
[src]
pub fn remove_component(&mut self, entity: &Entity)
[src]
pub fn get(
&self,
entity: &Entity
) -> Option<<<C as Component>::Storage as Storage<'_, C>>::Get>
[src]
&self,
entity: &Entity
) -> Option<<<C as Component>::Storage as Storage<'_, C>>::Get>
pub fn get_mut(
&mut self,
entity: &Entity
) -> Option<<<C as Component>::Storage as Storage<'_, C>>::GetMut>
[src]
&mut self,
entity: &Entity
) -> Option<<<C as Component>::Storage as Storage<'_, C>>::GetMut>
Trait Implementations
impl<'r, 'a, C> StorageEntitiesExt<'a, Read<'a, C>> for &'r CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]
impl<'r, 'a, C> StorageEntitiesExt<'a, Read<'a, C>> for &'r CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]type Component = <<C as Component>::Storage as Storage<'r, C>>::Get
type IntoStorage = StorageRead<'a, C, &'r <C as Component>::Storage>
pub fn into_storage(
self
) -> Option<<&'r CreationSto<'a, C> as StorageEntitiesExt<'a, Read<'a, C>>>::IntoStorage>
[src]
self
) -> Option<<&'r CreationSto<'a, C> as StorageEntitiesExt<'a, Read<'a, C>>>::IntoStorage>
pub fn entities(&self) -> &Entities<'a>
[src]
pub fn get(
self,
entity: &Entity
) -> Option<<&'r CreationSto<'a, C> as StorageEntitiesExt<'a, Read<'a, C>>>::Component>
[src]
self,
entity: &Entity
) -> Option<<&'r CreationSto<'a, C> as StorageEntitiesExt<'a, Read<'a, C>>>::Component>
impl<'r, 'a, C> StorageEntitiesExt<'a, Write<'a, C>> for &'r mut CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]
impl<'r, 'a, C> StorageEntitiesExt<'a, Write<'a, C>> for &'r mut CreationSto<'a, C> where
C: Component,
<C as Component>::Storage: for<'s> Storage<'s, C>,
[src]type Component = <<C as Component>::Storage as Storage<'r, C>>::GetMut
type IntoStorage = StorageWrite<'a, <C as Component>::Storage, C, &'r mut <C as Component>::Storage>
pub fn into_storage(
self
) -> Option<<&'r mut CreationSto<'a, C> as StorageEntitiesExt<'a, Write<'a, C>>>::IntoStorage>
[src]
self
) -> Option<<&'r mut CreationSto<'a, C> as StorageEntitiesExt<'a, Write<'a, C>>>::IntoStorage>
pub fn entities(&self) -> &Entities<'a>
[src]
pub fn get(
self,
entity: &Entity
) -> Option<<&'r mut CreationSto<'a, C> as StorageEntitiesExt<'a, Write<'a, C>>>::Component>
[src]
self,
entity: &Entity
) -> Option<<&'r mut CreationSto<'a, C> as StorageEntitiesExt<'a, Write<'a, C>>>::Component>
impl<'a, C> StorageWrapper for CreationSto<'a, C> where
C: Component,
[src]
impl<'a, C> StorageWrapper for CreationSto<'a, C> where
C: Component,
[src]Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for CreationSto<'a, C>
impl<'a, C> !Send for CreationSto<'a, C>
impl<'a, C> !Sync for CreationSto<'a, C>
impl<'a, C> Unpin for CreationSto<'a, C>
impl<'a, C> !UnwindSafe for CreationSto<'a, C>
Blanket Implementations
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]