pub trait VisitEntitiesMut {
    fn accept_mut<V>(&mut self, visitor: &V)
    where
        V: EntityVisitorMut
; }
Expand description

Support for generically mutably visiting all specs entities of a type with a visitor.

This trait can be derived automatically with #[derive(VisitEntitiesMut)] using the specs-visitor-derive crate.

Required Methods§

Accepts the given visitor.

The visitor’s visit_entity_mut method will be called for every entity contained within this type. This gives the visitor mutable references to each entity, allowing them to be changed. Note that the visitor itself has a shared borrow instead of a mutable borrow, because it might potentially be called in parallel.

Implementations on Foreign Types§

Implementors§