pub trait VisitEntities {
// Required method
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.