Trait specs_visitor::VisitEntities
source · pub trait VisitEntities {
fn accept<V>(&self, visitor: &V)
where
V: EntityVisitor;
}
Expand description
Support for generically visiting all specs
entities of a type with a
visitor.
This trait can be derived automatically with #[derive(VisitEntities)]
using the
specs-visitor-derive
crate.
Required Methods§
sourcefn accept<V>(&self, visitor: &V)where
V: EntityVisitor,
fn accept<V>(&self, visitor: &V)where
V: EntityVisitor,
Accepts the given visitor.
The visitor’s visit_entity
method will be called for every entity contained within this
type. The visitor could potentially be called in parallel.