[−]Struct oxygengine::prelude::shred::FetchMut
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
impl<'a, T> Deref for FetchMut<'a, T> where
T: Resource,
T: Resource,
impl<'a, T> DerefMut for FetchMut<'a, T> where
T: Resource,
T: Resource,
impl<'a, T, F> From<FetchMut<'a, T>> for Write<'a, T, F>
impl<'a, 'b, T> Join for &'a mut FetchMut<'b, T> where
T: Resource,
&'a mut T: Join,
T: Resource,
&'a mut T: Join,
type Type = <&'a mut T as Join>::Type
Type of joined components.
type Value = <&'a mut T as Join>::Value
Type of joined storages.
type Mask = <&'a mut T as Join>::Mask
Type of joined bit mask.
unsafe fn open(
self
) -> (<&'a mut FetchMut<'b, T> as Join>::Mask, <&'a mut FetchMut<'b, T> as Join>::Value)
self
) -> (<&'a mut FetchMut<'b, T> as Join>::Mask, <&'a mut FetchMut<'b, T> as Join>::Value)
unsafe fn get(
v: &mut <&'a mut FetchMut<'b, T> as Join>::Value,
i: u32
) -> <&'a mut FetchMut<'b, T> as Join>::Type
v: &mut <&'a mut FetchMut<'b, T> as Join>::Value,
i: u32
) -> <&'a mut FetchMut<'b, T> as Join>::Type
fn is_unconstrained() -> bool
fn join(self) -> JoinIter<Self>ⓘ
fn maybe(self) -> MaybeJoin<Self>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for FetchMut<'a, T>
impl<'a, T> !Send for FetchMut<'a, T>
impl<'a, T> !Sync for FetchMut<'a, T>
impl<'a, T> Unpin for FetchMut<'a, T>
impl<'a, T> !UnwindSafe for FetchMut<'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> 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,
T: Any,
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>,