pub struct Mutable<T: ComponentValue>(_);Expand description
Mutable component fetch See crate::Component::as_mut
Trait Implementations
sourceimpl<T: Clone + ComponentValue> Clone for Mutable<T>
impl<T: Clone + ComponentValue> Clone for Mutable<T>
sourceimpl<T: Debug + ComponentValue> Debug for Mutable<T>
impl<T: Debug + ComponentValue> Debug for Mutable<T>
sourceimpl<'w, T> Fetch<'w> for Mutable<T>where
T: ComponentValue,
impl<'w, T> Fetch<'w> for Mutable<T>where
T: ComponentValue,
sourceconst MUTABLE: bool = true
const MUTABLE: bool = true
true if the fetch mutates any component and thus needs a change event
type Filter = Nothing
type Filter = Nothing
The filter associated to the fetch, if applicable. If the fetch does not
use a filter, use the crate::All filter Read more
type Prepared = PreparedComponentMut<'w, T>
type Prepared = PreparedComponentMut<'w, T>
The prepared version of the fetch
sourcefn prepare(&self, data: FetchPrepareData<'w>) -> Option<Self::Prepared>
fn prepare(&self, data: FetchPrepareData<'w>) -> Option<Self::Prepared>
Prepare the query against an archetype. Returns None if doesn’t match. If Self::matches true, this needs to return Some Read more
sourcefn matches(&self, data: FetchPrepareData<'_>) -> bool
fn matches(&self, data: FetchPrepareData<'_>) -> bool
Returns true if the fetch matches the archetype
sourcefn describe(&self, f: &mut dyn Write) -> Result
fn describe(&self, f: &mut dyn Write) -> Result
Describes the fetch in a human-readable fashion
sourcefn difference(&self, data: FetchPrepareData<'_>) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn difference(&self, data: FetchPrepareData<'_>) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns the required elements in self which are not in archetype
sourcefn access(&self, data: FetchPrepareData<'_>) -> Vec<Access>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn access(&self, data: FetchPrepareData<'_>) -> Vec<Access>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns which components and how will be accessed for an archetype.
sourceconst HAS_FILTER: bool = false
const HAS_FILTER: bool = false
true if the fetch has a filter
Auto Trait Implementations
impl<T> RefUnwindSafe for Mutable<T>where
T: RefUnwindSafe,
impl<T> Send for Mutable<T>
impl<T> Sync for Mutable<T>
impl<T> Unpin for Mutable<T>where
T: Unpin,
impl<T> UnwindSafe for Mutable<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more