Struct rinecs::operators::Write[][src]

pub struct Write<'a, T: Component> where
    <T as Component>::Storage: Storage<'s, T>, 
{ /* fields omitted */ }

Operator that matches all entity’s that contain this component for read and write access

for pos in entities.iter_for_mut::<Write<Position>>(){
    //...
}

Will iterate over all position components

Trait Implementations

impl<'a, T: ComponentSend> ChangesData<'a> for Write<'a, T> where
    <T as Component>::Storage: Storage<'b, T>,
    WriteGuardRef<'b, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard>: IntoIterMut,
    WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard>: IntoChangesIter<'a, T, ChangesItem = <<T as Component>::Storage as Storage<'a, T>>::GetMut>, 
[src]

type SubStorage = StorageWrite<'a, <WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard> as IntoChangesIter<'a, T>>::RawSubStorage, Self::Components, <WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard> as IntoChangesIter<'a, T>>::SubStorage>

impl<'a, T: Component> DataAccesses for Write<'a, T> where
    <T as Component>::Storage: Storage<'s, T>, 
[src]

impl<'a, T: Component> Deref for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: Borrow<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
    <T as Component>::Storage: Storage<'s, T>, 
[src]

type Target = <<T as Component>::Storage as Storage<'a, T>>::DerefTarget

The resulting type after dereferencing.

impl<'a, T: Component> DerefMut for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: BorrowMut<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
    <T as Component>::Storage: Storage<'s, T>, 
[src]

impl<'a, T: Component> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::GetMut> for Write<'a, T> where
    <T as Component>::Storage: Storage<'s, T>, 
[src]

impl<'r, 'a, C> StorageEntitiesExt<'a, Write<'a, C>> for &'r mut CreationSto<'a, C> where
    C: Component,
    C::Storage: Storage<'s, C>, 
[src]

type Component = <C::Storage as Storage<'r, C>>::GetMut

type IntoStorage = StorageWrite<'a, C::Storage, C, &'r mut C::Storage>

impl<'a, T: Component> UnorderedData<'a> for Write<'a, T> where
    WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard>: IntoIterMut,
    <T as Component>::Storage: Storage<'s, T>, 
[src]

type Iter = IterOptionWrapper<<WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard> as IntoIterMut>::IterMut>

type IterMut = IterOptionWrapper<<WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard> as IntoIterMut>::IterMut>

type Components = T

type ComponentsRef = <<T as Component>::Storage as Storage<'a, T>>::GetMut

type Storage = StorageWrite<'a, <T as Component>::Storage, Self::Components, WriteGuardRef<'a, <T as Component>::Storage, <T as Component>::MutStorageCacheGuard>>

impl<T: Component> SafeIter<'_> for Write<'_, T> where
    <T as Component>::Storage: Storage<'s, T>, 
[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: RefUnwindSafe

impl<'a, T> Send for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: Send

impl<'a, T> Sync for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: Sync

impl<'a, T> Unpin for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: Unpin

impl<'a, T> UnwindSafe for Write<'a, T> where
    <<T as Component>::Storage as Storage<'a, T>>::GetMut: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.