Trait specs_visitor::EntityVisitor
source · pub trait EntityVisitor: Send + Sync {
fn visit_entity(&self, entity: Entity);
}
Expand description
A visitor for visiting entities in a read-only fashion.
Types implementing this trait are compatible with the accept
method on the VisitEntities
trait.
Required Methods§
sourcefn visit_entity(&self, entity: Entity)
fn visit_entity(&self, entity: Entity)
Allows the visitor to visit the specified entity.
This method could potentially be called in parallel.