pub trait GroupMatcher {
// Required methods
fn can_match_group() -> bool;
fn group_components() -> Vec<ComponentTypeId>;
}
Expand description
Allows a filter to determine if component optimization groups can be used to accelerate queries that use this filter.
Required Methods§
Sourcefn can_match_group() -> bool
fn can_match_group() -> bool
Returns true
if the filter may potentially match a group.
Sourcefn group_components() -> Vec<ComponentTypeId>
fn group_components() -> Vec<ComponentTypeId>
Returns the components that are required to be present in a group.
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.