pub type CompMut<'a, T> = RefMut<'a, ComponentStore<T>>;
Expand description
SystemParam
for getting mutable access to a ComponentStore
.
Aliased Type§
struct CompMut<'a, T> { /* private fields */ }
Trait Implementations§
source§impl<'a, 'q, T: HasSchema> QueryItem for &'a CompMut<'q, T>
impl<'a, 'q, T: HasSchema> QueryItem for &'a CompMut<'q, T>
§type Iter = Map<UntypedComponentBitsetIterator<'a>, for<'b> fn(_: SchemaRef<'b>) -> &'b T>
type Iter = Map<UntypedComponentBitsetIterator<'a>, for<'b> fn(_: SchemaRef<'b>) -> &'b T>
The type of iterator this query item creates
source§fn apply_bitset(&self, bitset: &mut BitSetVec)
fn apply_bitset(&self, bitset: &mut BitSetVec)
Modify the iteration bitset
source§fn get_single_with_bitset(
self,
bitset: Rc<BitSetVec>,
) -> Result<<Self::Iter as Iterator>::Item, QuerySingleError>
fn get_single_with_bitset( self, bitset: Rc<BitSetVec>, ) -> Result<<Self::Iter as Iterator>::Item, QuerySingleError>
Return the item that matches the query within the given bitset if there is exactly one
entity that matches this query item.
source§impl<'a, 'q, T: HasSchema> QueryItem for &'a mut CompMut<'q, T>
impl<'a, 'q, T: HasSchema> QueryItem for &'a mut CompMut<'q, T>
§type Iter = Map<UntypedComponentBitsetIteratorMut<'a>, for<'b> fn(_: SchemaRefMut<'b>) -> &'b mut T>
type Iter = Map<UntypedComponentBitsetIteratorMut<'a>, for<'b> fn(_: SchemaRefMut<'b>) -> &'b mut T>
The type of iterator this query item creates
source§fn apply_bitset(&self, bitset: &mut BitSetVec)
fn apply_bitset(&self, bitset: &mut BitSetVec)
Modify the iteration bitset
source§fn get_single_with_bitset(
self,
bitset: Rc<BitSetVec>,
) -> Result<<Self::Iter as Iterator>::Item, QuerySingleError>
fn get_single_with_bitset( self, bitset: Rc<BitSetVec>, ) -> Result<<Self::Iter as Iterator>::Item, QuerySingleError>
Return the item that matches the query within the given bitset if there is exactly one
entity that matches this query item.
source§impl<'a, T: HasSchema> SystemParam for CompMut<'a, T>
impl<'a, T: HasSchema> SystemParam for CompMut<'a, T>
§type State = Arc<AtomicCell<ComponentStore<T>>>
type State = Arc<AtomicCell<ComponentStore<T>>>
The intermediate state for the parameter, that may be extracted from the world.
§type Param<'p> = RefMut<'p, ComponentStore<T>>
type Param<'p> = RefMut<'p, ComponentStore<T>>
The type of the parameter, ranging over the lifetime of the intermediate state. Read more