[−][src]Trait oxygengine_core::ecs::storage::GenericReadStorage
Provides generic read access to both ReadStorage
and WriteStorage
Associated Types
Loading content...Required methods
fn get(&self, entity: Entity) -> Option<&Self::Component>
Get immutable access to an Entity
s component
fn _private() -> Seal
Private function to seal the trait
Implementors
impl<'a, 'b, T> GenericReadStorage for &'b Storage<'a, T, Fetch<'a, MaskedStorage<T>>> where
'a: 'b,
T: Component,
[src]
'a: 'b,
T: Component,
type Component = T
fn get(
&self,
entity: Entity
) -> Option<&<&'b Storage<'a, T, Fetch<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
[src]
&self,
entity: Entity
) -> Option<&<&'b Storage<'a, T, Fetch<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
fn _private() -> Seal
[src]
impl<'a, 'b, T> GenericReadStorage for &'b Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> where
'a: 'b,
T: Component,
[src]
'a: 'b,
T: Component,
type Component = T
fn get(
&self,
entity: Entity
) -> Option<&<&'b Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
[src]
&self,
entity: Entity
) -> Option<&<&'b Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
fn _private() -> Seal
[src]
impl<'a, T> GenericReadStorage for Storage<'a, T, Fetch<'a, MaskedStorage<T>>> where
T: Component,
[src]
T: Component,
type Component = T
fn get(
&self,
entity: Entity
) -> Option<&<Storage<'a, T, Fetch<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
[src]
&self,
entity: Entity
) -> Option<&<Storage<'a, T, Fetch<'a, MaskedStorage<T>>> as GenericReadStorage>::Component>
fn _private() -> Seal
[src]
impl<'a, T> GenericReadStorage for Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> where
T: Component,
[src]
T: Component,