Trait HazardFilter

Source
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§

Source

fn is_irrelevant(&self, haz_key: HazKey) -> bool

Implementors§

Source§

impl HazardFilter for HazKey

Deems hazards induced by itself as irrelevant.

Source§

impl HazardFilter for HazKeyFilter

Source§

impl HazardFilter for NoFilter

Source§

impl<T> HazardFilter for T
where T: HazardCollector,

Implements HazardFilter for any type that implements HazardCollector. Any HazardEntitys that are already in the collector are considered irrelevant.