pub type CompMut<'a, T> = RefMut<'a, ComponentStore<T>>;Expand description
SystemParam for getting mutable access to a ComponentStore.
Aliased Type§
pub 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>
Source§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>
Source§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>
Source§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.
Source§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