pub struct Fetch<'a, T>where
T: 'a,{ /* private fields */ }Expand description
Allows to fetch a resource in a system immutably.
If the resource isn’t strictly required, you should use Option<Fetch<T>>.
§Type parameters
T: The type of the resource
Trait Implementations§
Source§impl<'a, 'b, T> Join for &'a Fetch<'b, T>
impl<'a, 'b, T> Join for &'a Fetch<'b, T>
Source§unsafe fn open(
self,
) -> (<&'a Fetch<'b, T> as Join>::Mask, <&'a Fetch<'b, T> as Join>::Value)
unsafe fn open( self, ) -> (<&'a Fetch<'b, T> as Join>::Mask, <&'a Fetch<'b, T> as Join>::Value)
Open this join by returning the mask and the storages. Read more
Source§unsafe fn get(
v: &mut <&'a Fetch<'b, T> as Join>::Value,
i: u32,
) -> <&'a Fetch<'b, T> as Join>::Type
unsafe fn get( v: &mut <&'a Fetch<'b, T> as Join>::Value, i: u32, ) -> <&'a Fetch<'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 Fetch<'a, T>
impl<'a, T> !RefUnwindSafe for Fetch<'a, T>
impl<'a, T> Send for Fetch<'a, T>where
T: Sync,
impl<'a, T> Sync for Fetch<'a, T>where
T: Sync,
impl<'a, T> Unpin for Fetch<'a, T>
impl<'a, T> !UnwindSafe for Fetch<'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