Struct rinecs::operators::Read [−][src]
pub struct Read<'a, T: Component> where
<T as Component>::Storage: Storage<'s, T>, { /* fields omitted */ }
Operator that matches all entities that contain this component for read only access
for pos in entities.iter_for::<Read<Position>>(){ //... }
Will iterate over all position components
Trait Implementations
impl<'a, T: ComponentSend> ChangedData<'a> for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
ReadGuardRef<'b, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: ChangedStorageExt<'a>,
[src]
impl<'a, T: ComponentSend> ChangedData<'a> for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
ReadGuardRef<'b, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: ChangedStorageExt<'a>,
[src]type ChangedIter = ChangedIter<'a, ReadGuardRef<'a, <T as Component>::Storage>>
fn changed_iter<E: EntitiesStorage>(entities: &'a E) -> Self::ChangedIter
[src]
impl<'a, T: Component> DataAccesses for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component> DataAccesses for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
[src]impl<'a, T: Component> Deref for Read<'a, T> where
T::Storage: Storage<'s, T>,
<<T as Component>::Storage as Storage<'a, T>>::Get: Borrow<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
[src]
impl<'a, T: Component> Deref for Read<'a, T> where
T::Storage: Storage<'s, T>,
<<T as Component>::Storage as Storage<'a, T>>::Get: Borrow<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
[src]impl<'a, T: Component> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for Read<'a, T> where
<T as Component>::Storage: Storage<'s, T>,
[src]impl<'r, 'a, C> StorageEntitiesExt<'a, Read<'a, C>> for &'r CreationSto<'a, C> where
C: Component,
C::Storage: Storage<'s, C>,
[src]
impl<'r, 'a, C> StorageEntitiesExt<'a, Read<'a, C>> for &'r CreationSto<'a, C> where
C: Component,
C::Storage: Storage<'s, C>,
[src]impl<'a, T: Component> UnorderedData<'a> for Read<'a, T> where
ReadGuardRef<'a, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component> UnorderedData<'a> for Read<'a, T> where
ReadGuardRef<'a, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: Storage<'s, T>,
[src]type Iter = IterOptionWrapper<<ReadGuardRef<'a, <T as Component>::Storage> as IntoIter>::Iter>
type IterMut = IterOptionWrapper<<ReadGuardRef<'a, <T as Component>::Storage> as IntoIter>::Iter>
type Components = T
type ComponentsRef = <<T as Component>::Storage as Storage<'a, T>>::Get
type Storage = StorageRead<'a, T, ReadGuardRef<'a, <T as Component>::Storage>>
fn query_mask<E: EntitiesStorage>(entities: &E) -> Bitmask
[src]
fn into_iter<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn into_iter_mut<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn storage<E: EntitiesStorage>(entities: &'a E) -> Option<Self::Storage>
[src]
impl<T: Component> SafeIter<'_> for Read<'_, T> where
<T as Component>::Storage: Storage<'s, T>,
[src]
<T as Component>::Storage: Storage<'s, T>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Read<'a, T> where
<<T as Component>::Storage as Storage<'a, T>>::Get: RefUnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: RefUnwindSafe,
impl<'a, T> Send for Read<'a, T> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Send,
<<T as Component>::Storage as Storage<'a, T>>::Get: Send,
impl<'a, T> Sync for Read<'a, T> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Sync,
<<T as Component>::Storage as Storage<'a, T>>::Get: Sync,
impl<'a, T> Unpin for Read<'a, T> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Unpin,
<<T as Component>::Storage as Storage<'a, T>>::Get: Unpin,
impl<'a, T> UnwindSafe for Read<'a, T> where
<<T as Component>::Storage as Storage<'a, T>>::Get: UnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: UnwindSafe,