[][src]Trait oxygengine_core::ecs::storage::GenericReadStorage

pub trait GenericReadStorage {
    type Component: Component;
    fn get(&self, entity: Entity) -> Option<&Self::Component>;
fn _private() -> Seal; }

Provides generic read access to both ReadStorage and WriteStorage

Associated Types

type Component: Component

The component type of the storage

Loading content...

Required methods

fn get(&self, entity: Entity) -> Option<&Self::Component>

Get immutable access to an Entitys component

fn _private() -> Seal

Private function to seal the trait

Loading content...

Implementors

impl<'a, 'b, T> GenericReadStorage for &'b Storage<'a, T, Fetch<'a, MaskedStorage<T>>> where
    'a: 'b,
    T: Component
[src]

type Component = T

impl<'a, 'b, T> GenericReadStorage for &'b Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> where
    'a: 'b,
    T: Component
[src]

type Component = T

impl<'a, T> GenericReadStorage for Storage<'a, T, Fetch<'a, MaskedStorage<T>>> where
    T: Component
[src]

type Component = T

impl<'a, T> GenericReadStorage for Storage<'a, T, FetchMut<'a, MaskedStorage<T>>> where
    T: Component
[src]

type Component = T

Loading content...