pub trait HazardFilter {
// Required method
fn is_irrelevant(&self, entity: &HazardEntity) -> bool;
}
Expand description
Trait for filters to ignore all Hazard
s induced by specific HazardEntity
s.
Enables collision queries to ignore specific hazards during the check.
Required Methods§
fn is_irrelevant(&self, entity: &HazardEntity) -> bool
Implementors§
impl HazardFilter for HazardEntity
Deems hazards induced by self
as irrelevant.
impl HazardFilter for ContainerHazardFilter
impl HazardFilter for EntityHazardFilter
impl HazardFilter for NoHazardFilter
impl HazardFilter for QZHazardFilter
impl<T> HazardFilter for Twhere
T: HazardDetector,
Implements HazardFilter
for any type that implements HazardDetector
.
Any HazardEntity
s that are already in the detector are considered irrelevant.