Trait rinecs::storage::StorageRef[][src]

pub trait StorageRef<'r>: FastIndexExt {
    type Component;
    type Data;
    unsafe fn get_fast_unchecked(
        &'r mut self,
        idx: Self::FastIndex
    ) -> Self::Component;
unsafe fn get_unchecked(&'r mut self, guid: usize) -> Self::Component;
fn contains(&self, guid: usize) -> bool; fn get(&'r mut self, entity: &Entity) -> Option<Self::Component> { ... } }

Associated Types

type Component[src]

type Data[src]

Loading content...

Required methods

unsafe fn get_fast_unchecked(
    &'r mut self,
    idx: Self::FastIndex
) -> Self::Component
[src]

unsafe fn get_unchecked(&'r mut self, guid: usize) -> Self::Component[src]

fn contains(&self, guid: usize) -> bool[src]

Loading content...

Provided methods

fn get(&'r mut self, entity: &Entity) -> Option<Self::Component>[src]

Loading content...

Implementations on Foreign Types

impl<'r, 'e> StorageRef<'r> for &'e [(Entity, MaskType)][src]

type Data = Entity

type Component = Entity

impl<'a, 'r, S1, S2> StorageRef<'r> for (S1, S2) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3> StorageRef<'r> for (S1, S2, S3) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4> StorageRef<'r> for (S1, S2, S3, S4) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5> StorageRef<'r> for (S1, S2, S3, S4, S5) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6> StorageRef<'r> for (S1, S2, S3, S4, S5, S6) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6, S7> StorageRef<'r> for (S1, S2, S3, S4, S5, S6, S7) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>,
    S7: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data, <S7 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component, <S7 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6, S7, S8> StorageRef<'r> for (S1, S2, S3, S4, S5, S6, S7, S8) where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>,
    S7: StorageRef<'r>,
    S8: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data, <S7 as StorageRef<'r>>::Data, <S8 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component, <S7 as StorageRef<'r>>::Component, <S8 as StorageRef<'r>>::Component)

Loading content...

Implementors

impl<'a, 'r, S1, S2> StorageRef<'r> for StorageRef2<'a, S1, S2> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3> StorageRef<'r> for StorageRef3<'a, S1, S2, S3> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4> StorageRef<'r> for StorageRef4<'a, S1, S2, S3, S4> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5> StorageRef<'r> for StorageRef5<'a, S1, S2, S3, S4, S5> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6> StorageRef<'r> for StorageRef6<'a, S1, S2, S3, S4, S5, S6> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6, S7> StorageRef<'r> for StorageRef7<'a, S1, S2, S3, S4, S5, S6, S7> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>,
    S7: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data, <S7 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component, <S7 as StorageRef<'r>>::Component)

impl<'a, 'r, S1, S2, S3, S4, S5, S6, S7, S8> StorageRef<'r> for StorageRef8<'a, S1, S2, S3, S4, S5, S6, S7, S8> where
    S1: StorageRef<'r>,
    S2: StorageRef<'r>,
    S3: StorageRef<'r>,
    S4: StorageRef<'r>,
    S5: StorageRef<'r>,
    S6: StorageRef<'r>,
    S7: StorageRef<'r>,
    S8: StorageRef<'r>, 
[src]

type Data = (<S1 as StorageRef<'r>>::Data, <S2 as StorageRef<'r>>::Data, <S3 as StorageRef<'r>>::Data, <S4 as StorageRef<'r>>::Data, <S5 as StorageRef<'r>>::Data, <S6 as StorageRef<'r>>::Data, <S7 as StorageRef<'r>>::Data, <S8 as StorageRef<'r>>::Data)

type Component = (<S1 as StorageRef<'r>>::Component, <S2 as StorageRef<'r>>::Component, <S3 as StorageRef<'r>>::Component, <S4 as StorageRef<'r>>::Component, <S5 as StorageRef<'r>>::Component, <S6 as StorageRef<'r>>::Component, <S7 as StorageRef<'r>>::Component, <S8 as StorageRef<'r>>::Component)

Loading content...