pub struct FetchMut<'a, T>where
T: 'a,{ /* private fields */ }Expand description
Allows to fetch a resource in a system mutably.
If the resource isn’t strictly required, you should use Option<FetchMut<T>>.
§Type parameters
T: The type of the resource
Trait Implementations§
Source§impl<'a, 'b, T> Join for &'a mut FetchMut<'b, T>
impl<'a, 'b, T> Join for &'a mut FetchMut<'b, T>
Source§unsafe fn open(
self,
) -> (<&'a mut FetchMut<'b, T> as Join>::Mask, <&'a mut FetchMut<'b, T> as Join>::Value)
unsafe fn open( self, ) -> (<&'a mut FetchMut<'b, T> as Join>::Mask, <&'a mut FetchMut<'b, T> as Join>::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get(
v: &mut <&'a mut FetchMut<'b, T> as Join>::Value,
i: u32,
) -> <&'a mut FetchMut<'b, T> as Join>::Type
unsafe fn get( v: &mut <&'a mut FetchMut<'b, T> as Join>::Value, i: u32, ) -> <&'a mut FetchMut<'b, T> as Join>::Type
Get a joined component value by a given index.
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/ParJoin to
go through all indices which is usually not what is wanted and will kill performance.Auto Trait Implementations§
impl<'a, T> Freeze for FetchMut<'a, T>
impl<'a, T> !RefUnwindSafe for FetchMut<'a, T>
impl<'a, T> Send for FetchMut<'a, T>where
T: Send,
impl<'a, T> Sync for FetchMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for FetchMut<'a, T>
impl<'a, T> !UnwindSafe for FetchMut<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more