pub trait HazardFilter {
// Required method
fn is_irrelevant(&self, haz_key: HazKey) -> bool;
}Expand description
Trait for filters to ignore all Hazards induced by specific HazardEntitys.
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 HazardEntitys that are already in the collector are considered irrelevant.