Type Alias bones_ecs::system::CompMut

source ·
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>

§

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)

Modify the iteration bitset
source§

fn iter_with_bitset(self, bitset: Rc<BitSetVec>) -> Self::Iter

Return an iterator over the provided bitset.
source§

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>

The type of iterator this query item creates
source§

fn apply_bitset(&self, bitset: &mut BitSetVec)

Modify the iteration bitset
source§

fn iter_with_bitset(self, bitset: Rc<BitSetVec>) -> Self::Iter

Return an iterator over the provided bitset.
source§

impl<'a, T: HasSchema> SystemParam for CompMut<'a, 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>>

The type of the parameter, ranging over the lifetime of the intermediate state. Read more
source§

fn get_state(world: &World) -> Self::State

This is called to produce the intermediate state of the system parameter. Read more
source§

fn borrow<'s>(_world: &'s World, state: &'s mut Self::State) -> Self::Param<'s>

This is used create an instance of the system parame, possibly borrowed from the intermediate parameter state.