Trait rin::ecs::operators::OptionStorage[][src]

pub trait OptionStorage<'r>: IntoSendStorage<'r> where
    Self::SendStorage: ReadOnlyStorage
{ type Iter; pub fn iter(this: Option<&'r Self>) -> Self::Iter; pub fn iter_for_entities<E>(
        this: Option<&'r Self>,
        entities_iter: E
    ) -> <E as IntoEntitiesIterator<'r, Self::SendStorage>>::IntoEntitiesIter
    where
        E: IntoEntitiesIterator<'r, Self::SendStorage>
, { ... }
pub fn iter_for_entities_opt<E>(
        this: Option<&'r Self>,
        entities_iter: E
    ) -> <E as IntoEntitiesIterator<'r, Self::SendStorage>>::IntoEntitiesOptIter
    where
        E: IntoEntitiesIterator<'r, Self::SendStorage>
, { ... } }

Associated Types

type Iter[src]

Loading content...

Required methods

pub fn iter(this: Option<&'r Self>) -> Self::Iter[src]

Loading content...

Provided methods

pub fn iter_for_entities<E>(
    this: Option<&'r Self>,
    entities_iter: E
) -> <E as IntoEntitiesIterator<'r, Self::SendStorage>>::IntoEntitiesIter where
    E: IntoEntitiesIterator<'r, Self::SendStorage>, 
[src]

pub fn iter_for_entities_opt<E>(
    this: Option<&'r Self>,
    entities_iter: E
) -> <E as IntoEntitiesIterator<'r, Self::SendStorage>>::IntoEntitiesOptIter where
    E: IntoEntitiesIterator<'r, Self::SendStorage>, 
[src]

Loading content...

Implementors

impl<'a, 'b, S1, S2> OptionStorage<'b> for StorageRef2<'a, S1, S2> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef2<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3> OptionStorage<'b> for StorageRef3<'a, S1, S2, S3> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef3<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3, S4> OptionStorage<'b> for StorageRef4<'a, S1, S2, S3, S4> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S4: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S4 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef4<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage, <S4 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3, S4, S5> OptionStorage<'b> for StorageRef5<'a, S1, S2, S3, S4, S5> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S4: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S5: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S4 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S5 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef5<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage, <S4 as IntoSendStorage<'b>>::SendStorage, <S5 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3, S4, S5, S6> OptionStorage<'b> for StorageRef6<'a, S1, S2, S3, S4, S5, S6> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S4: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S5: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S6: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S4 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S5 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S6 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef6<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage, <S4 as IntoSendStorage<'b>>::SendStorage, <S5 as IntoSendStorage<'b>>::SendStorage, <S6 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3, S4, S5, S6, S7> OptionStorage<'b> for StorageRef7<'a, S1, S2, S3, S4, S5, S6, S7> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S4: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S5: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S6: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S7: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S4 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S5 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S6 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S7 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef7<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage, <S4 as IntoSendStorage<'b>>::SendStorage, <S5 as IntoSendStorage<'b>>::SendStorage, <S6 as IntoSendStorage<'b>>::SendStorage, <S7 as IntoSendStorage<'b>>::SendStorage>>

impl<'a, 'b, S1, S2, S3, S4, S5, S6, S7, S8> OptionStorage<'b> for StorageRef8<'a, S1, S2, S3, S4, S5, S6, S7, S8> where
    S2: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S3: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S4: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S1: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S5: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S6: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S7: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    S8: StorageRef<'b> + IntoSendStorage<'b> + ReadOnlyStorage,
    <S1 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S2 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S3 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S4 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S5 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S6 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S7 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage,
    <S8 as IntoSendStorage<'b>>::SendStorage: ReadOnlyStorage
[src]

type Iter = StorageIter<'b, StorageRef8<'b, <S1 as IntoSendStorage<'b>>::SendStorage, <S2 as IntoSendStorage<'b>>::SendStorage, <S3 as IntoSendStorage<'b>>::SendStorage, <S4 as IntoSendStorage<'b>>::SendStorage, <S5 as IntoSendStorage<'b>>::SendStorage, <S6 as IntoSendStorage<'b>>::SendStorage, <S7 as IntoSendStorage<'b>>::SendStorage, <S8 as IntoSendStorage<'b>>::SendStorage>>

Loading content...