Struct apecs::WriteExpect
source · [−]pub struct WriteExpect<T: IsResource>(_);Expand description
A mutably borrowed resource that must be created explicitly.
The created resource should then be added to the world with
World::with_resource or World::set_resource.
The resource is automatically sent back to the world on drop.
Trait Implementations
sourceimpl<'a, T: IsResource> CanFetch for WriteExpect<T>
impl<'a, T: IsResource> CanFetch for WriteExpect<T>
sourceimpl<T: IsResource> Deref for WriteExpect<T>
impl<T: IsResource> Deref for WriteExpect<T>
sourceimpl<'a, T: IsResource> DerefMut for WriteExpect<T>
impl<'a, T: IsResource> DerefMut for WriteExpect<T>
sourceimpl<'a, S: Send + Sync + 'static> IntoParallelIterator for &'a WriteExpect<S>where
&'a S: IntoParallelIterator,
impl<'a, S: Send + Sync + 'static> IntoParallelIterator for &'a WriteExpect<S>where
&'a S: IntoParallelIterator,
type Iter = <&'a S as IntoParallelIterator>::Iter
type Iter = <&'a S as IntoParallelIterator>::Iter
The parallel iterator type that will be created.
type Item = <&'a S as IntoParallelIterator>::Item
type Item = <&'a S as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
sourcefn into_par_iter(self) -> Self::Iter
fn into_par_iter(self) -> Self::Iter
Converts self into a parallel iterator. Read more
sourceimpl<'a, S: Send + Sync + 'static> IntoParallelIterator for &'a mut WriteExpect<S>where
&'a mut S: IntoParallelIterator,
impl<'a, S: Send + Sync + 'static> IntoParallelIterator for &'a mut WriteExpect<S>where
&'a mut S: IntoParallelIterator,
type Iter = <&'a mut S as IntoParallelIterator>::Iter
type Iter = <&'a mut S as IntoParallelIterator>::Iter
The parallel iterator type that will be created.
type Item = <&'a mut S as IntoParallelIterator>::Item
type Item = <&'a mut S as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
sourcefn into_par_iter(self) -> Self::Iter
fn into_par_iter(self) -> Self::Iter
Converts self into a parallel iterator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for WriteExpect<T>where
T: RefUnwindSafe,
impl<T> Send for WriteExpect<T>
impl<T> Sync for WriteExpect<T>
impl<T> Unpin for WriteExpect<T>
impl<T> UnwindSafe for WriteExpect<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'data, I> IntoParallelRefIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
impl<'data, I> IntoParallelRefIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
type Iter = <&'data I as IntoParallelIterator>::Iter
type Iter = <&'data I as IntoParallelIterator>::Iter
The type of the parallel iterator that will be returned.
type Item = <&'data I as IntoParallelIterator>::Item
type Item = <&'data I as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
This will typically be an &'data T reference type. Read more
sourcefn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
Converts self into a parallel iterator. Read more
sourceimpl<'data, I> IntoParallelRefMutIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data mut I: IntoParallelIterator,
impl<'data, I> IntoParallelRefMutIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data mut I: IntoParallelIterator,
type Iter = <&'data mut I as IntoParallelIterator>::Iter
type Iter = <&'data mut I as IntoParallelIterator>::Iter
The type of iterator that will be created.
type Item = <&'data mut I as IntoParallelIterator>::Item
type Item = <&'data mut I as IntoParallelIterator>::Item
The type of item that will be produced; this is typically an
&'data mut T reference. Read more
sourcefn par_iter_mut(
&'data mut self
) -> <I as IntoParallelRefMutIterator<'data>>::Iter
fn par_iter_mut(
&'data mut self
) -> <I as IntoParallelRefMutIterator<'data>>::Iter
Creates the parallel iterator from self. Read more