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§

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.

Implementations on Foreign Types§

Implementors§