[−][src]Struct oxygengine_core::ecs::shred::Fetch
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> Deref for Fetch<'a, T> where
T: Resource,
[src]
T: Resource,
impl<'a, T, F> From<Fetch<'a, T>> for Read<'a, T, F>
[src]
impl<'a, 'b, T> Join for &'a Fetch<'b, T> where
T: Resource,
&'a T: Join,
[src]
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.
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)
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
fn is_unconstrained() -> bool
[src]
ⓘImportant traits for JoinIter<J>fn join(self) -> JoinIter<Self>
[src]
ⓘImportant traits for JoinIter<J>
fn maybe(self) -> MaybeJoin<Self>
[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Fetch<'a, T>
impl<'a, T> Send for Fetch<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for Fetch<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Fetch<'a, T>
impl<'a, T> !UnwindSafe for Fetch<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,