pub trait DynamicFilter:
Default
+ Send
+ Sync {
// Required methods
fn prepare(&mut self, world: WorldId);
fn matches_archetype<F>(&mut self, fetch: &F) -> FilterResult
where F: Fetch;
}
Expand description
A filter which selects based upon the data available in the archetype.
Required Methods§
Sourcefn matches_archetype<F>(&mut self, fetch: &F) -> FilterResultwhere
F: Fetch,
fn matches_archetype<F>(&mut self, fetch: &F) -> FilterResultwhere
F: Fetch,
Calculates the filter’s result for the given archetype data.
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.