Skip to main content

engine_filter_accepts

Function engine_filter_accepts 

Source
pub fn engine_filter_accepts(
    filter: Option<&[EngineEventKind]>,
    event: &EngineEvent,
) -> bool
Expand description

Returns whether an engine event passes an optional kind filter.

§Arguments

  • filter - The accepted kinds, or None to accept every kind.
  • event - The engine event.

§Returns

true if there is no filter or the filter lists the event’s kind.