Struct oxygengine_core::ecs::shred::Fetch [−][src]
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, 'b, T> Join for &'a Fetch<'b, T> where
T: Resource,
&'a T: Join,
[src]
impl<'a, 'b, T> Join for &'a Fetch<'b, T> where
T: Resource,
&'a T: Join,
[src]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)
[src]
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
[src]
v: &mut <&'a Fetch<'b, T> as Join>::Value,
i: u32
) -> <&'a Fetch<'b, T> as Join>::Type
pub fn is_unconstrained() -> bool
[src]
pub fn join(self) -> JoinIter<Self>ⓘ
[src]
pub fn maybe(self) -> MaybeJoin<Self>
[src]
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>