pub type WriteExpect<'a, T> = Write<'a, T, PanicHandler>;
Expand description
Allows to fetch a resource in a system mutably.
This will panic if the resource does not exist.
Usage of Write
or Option<Write>
is therefore recommended.
Aliased Type§
struct WriteExpect<'a, T> { /* private fields */ }
Trait Implementations§
Source§impl<'a, 'b, T> Join for &'a mut WriteExpect<'b, T>
impl<'a, 'b, T> Join for &'a mut WriteExpect<'b, T>
Source§unsafe fn open(self) -> (Self::Mask, Self::Value)
unsafe fn open(self) -> (Self::Mask, Self::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get(v: &mut Self::Value, i: Index) -> Self::Type
unsafe fn get(v: &mut Self::Value, i: Index) -> Self::Type
Get a joined component value by a given index. Read more
Source§fn is_unconstrained() -> bool
fn is_unconstrained() -> bool
If this
Join
typically returns all indices in the mask, then iterating
over only it or combined with other joins that are also dangerous will
cause the JoinIter
to go through all indices which is usually not what
is wanted and will kill performance.Source§impl<'a, 'b, T> LendJoin for &'a mut WriteExpect<'b, T>
impl<'a, 'b, T> LendJoin for &'a mut WriteExpect<'b, T>
Source§unsafe fn open(self) -> (Self::Mask, Self::Value)
unsafe fn open(self) -> (Self::Mask, Self::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get<'next>(
v: &'next mut Self::Value,
i: Index,
) -> <Self as LendJoinඞType<'next>>::T
unsafe fn get<'next>( v: &'next mut Self::Value, i: Index, ) -> <Self as LendJoinඞType<'next>>::T
Get a joined component value by a given index. Read more
Source§fn is_unconstrained() -> bool
fn is_unconstrained() -> bool
If this
LendJoin
typically returns all indices in the mask, then
iterating over only it or combined with other joins that are also
dangerous will cause the JoinLendIter
to go through all indices which
is usually not what is wanted and will kill performance.Source§fn lend_join(self) -> JoinLendIter<Self>where
Self: Sized,
fn lend_join(self) -> JoinLendIter<Self>where
Self: Sized,
Create a joined lending iterator over the contents.
Source§impl<'a, 'b, T> ParJoin for &'a mut WriteExpect<'b, T>
impl<'a, 'b, T> ParJoin for &'a mut WriteExpect<'b, T>
Source§unsafe fn open(self) -> (Self::Mask, Self::Value)
unsafe fn open(self) -> (Self::Mask, Self::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get(v: &Self::Value, i: Index) -> Self::Type
unsafe fn get(v: &Self::Value, i: Index) -> Self::Type
Get a joined component value by a given index. Read more
Source§fn is_unconstrained() -> bool
fn is_unconstrained() -> bool
If this
LendJoin
typically returns all indices in the mask, then
iterating over only it or combined with other joins that are also
dangerous will cause the JoinLendIter
to go through all indices which
is usually not what is wanted and will kill performance.Source§fn par_join(self) -> JoinParIter<Self>where
Self: Sized,
fn par_join(self) -> JoinParIter<Self>where
Self: Sized,
Create a joined parallel iterator over the contents.