pub trait HazardFilter {
// Required method
fn is_irrelevant(&self, haz_key: HazKey) -> 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, haz_key: HazKey) -> bool
Implementors§
impl HazardFilter for HazKey
Deems hazards induced by itself as irrelevant.
impl HazardFilter for HazKeyFilter
impl HazardFilter for NoFilter
impl<T> HazardFilter for Twhere
T: HazardCollector,
Implements HazardFilter
for any type that implements HazardCollector
.
Any HazardEntity
s that are already in the collector are considered irrelevant.