Struct oxygengine_core::ecs::Write [−][src]
Allows to fetch a resource in a system mutably.
If the resource isn’t strictly required, you should use Option<Write<T>>
.
Type parameters
T
: The type of the resourceF
: The setup handler (default:DefaultProvider
)
Trait Implementations
impl<'a, T, F> Deref for Write<'a, T, F> where
T: Resource,
[src]
T: Resource,
impl<'a, T, F> DerefMut for Write<'a, T, F> where
T: Resource,
[src]
T: Resource,
impl<'a, T, F> From<FetchMut<'a, T>> for Write<'a, T, F>
[src]
impl<'a, 'b, T> Join for &'a mut Write<'b, T, PanicHandler> where
T: Resource,
&'a mut T: Join,
[src]
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.
pub unsafe fn open(
self
) -> (<&'a mut Write<'b, T, PanicHandler> as Join>::Mask, <&'a mut Write<'b, T, PanicHandler> as Join>::Value)
[src]
self
) -> (<&'a mut Write<'b, T, PanicHandler> as Join>::Mask, <&'a mut Write<'b, T, PanicHandler> as Join>::Value)
pub unsafe fn get(
v: &mut <&'a mut Write<'b, T, PanicHandler> as Join>::Value,
i: u32
) -> <&'a mut Write<'b, T, PanicHandler> as Join>::Type
[src]
v: &mut <&'a mut Write<'b, T, PanicHandler> as Join>::Value,
i: u32
) -> <&'a mut Write<'b, T, PanicHandler> as Join>::Type
pub fn is_unconstrained() -> bool
[src]
pub fn join(self) -> JoinIter<Self>ⓘ
[src]
pub fn maybe(self) -> MaybeJoin<Self>
[src]
impl<'a, 'b, T> Join for &'a mut Write<'b, T, DefaultProvider> where
T: Resource,
&'a mut T: Join,
[src]
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.
pub unsafe fn open(
self
) -> (<&'a mut Write<'b, T, DefaultProvider> as Join>::Mask, <&'a mut Write<'b, T, DefaultProvider> as Join>::Value)
[src]
self
) -> (<&'a mut Write<'b, T, DefaultProvider> as Join>::Mask, <&'a mut Write<'b, T, DefaultProvider> as Join>::Value)
pub unsafe fn get(
v: &mut <&'a mut Write<'b, T, DefaultProvider> as Join>::Value,
i: u32
) -> <&'a mut Write<'b, T, DefaultProvider> as Join>::Type
[src]
v: &mut <&'a mut Write<'b, T, DefaultProvider> as Join>::Value,
i: u32
) -> <&'a mut Write<'b, T, DefaultProvider> as Join>::Type
pub fn is_unconstrained() -> bool
[src]
pub fn join(self) -> JoinIter<Self>ⓘ
[src]
pub fn maybe(self) -> MaybeJoin<Self>
[src]
impl<'a, T, F> SystemData<'a> for Write<'a, T, F> where
T: Resource,
F: SetupHandler<T>,
[src]
T: Resource,
F: SetupHandler<T>,
Auto Trait Implementations
impl<'a, T, F = DefaultProvider> !RefUnwindSafe for Write<'a, T, F>
impl<'a, T, F = DefaultProvider> !Send for Write<'a, T, F>
impl<'a, T, F = DefaultProvider> !Sync for Write<'a, T, F>
impl<'a, T, F> Unpin for Write<'a, T, F> where
F: Unpin,
F: Unpin,
impl<'a, T, F = DefaultProvider> !UnwindSafe for Write<'a, T, F>
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,
pub 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DynamicSystemData<'a> for T where
T: SystemData<'a>,
[src]
T: SystemData<'a>,
type Accessor = StaticAccessor<T>
The accessor of the SystemData
, which specifies the read and write
dependencies and does the fetching. Read more
pub fn setup(&StaticAccessor<T>, world: &mut World)
[src]
pub fn fetch(&StaticAccessor<T>, world: &'a World) -> 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,
[src]
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.
pub 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>,