Struct oxygengine::core::ecs::shred::Fetch [−]
pub struct Fetch<'a, T> where
T: 'a, { /* fields omitted */ }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
impl<'a, T> Clone for Fetch<'a, T>
impl<'a, T> Clone for Fetch<'a, T>pub fn clone(&self) -> Fetch<'a, T>
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a, 'b, T> Join for &'a Fetch<'b, T> where
T: Resource,
&'a T: Join,
impl<'a, 'b, T> Join for &'a Fetch<'b, T> where
T: Resource,
&'a T: Join, type Type = <&'a T as Join>::Type
Type of joined components.
type Value = <&'a T as Join>::Value
Type of joined storages.
type Mask = <&'a T as Join>::Mask
Type of joined bit mask.
pub unsafe fn open(
self
) -> (<&'a Fetch<'b, T> as Join>::Mask, <&'a Fetch<'b, T> as Join>::Value)
self
) -> (<&'a Fetch<'b, T> as Join>::Mask, <&'a Fetch<'b, T> as Join>::Value)
pub unsafe fn get(
v: &mut <&'a Fetch<'b, T> as Join>::Value,
i: u32
) -> <&'a Fetch<'b, T> as Join>::Type
v: &mut <&'a Fetch<'b, T> as Join>::Value,
i: u32
) -> <&'a Fetch<'b, T> as Join>::Type
pub fn is_unconstrained() -> bool
pub fn join(self) -> JoinIter<Self>ⓘ
pub fn maybe(self) -> MaybeJoin<Self>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Fetch<'a, T>
impl<'a, T> !RefUnwindSafe for Fetch<'a, T>impl<'a, T> !UnwindSafe for Fetch<'a, T>
impl<'a, T> !UnwindSafe for Fetch<'a, T>