Skip to main content

QueryFunction

Trait QueryFunction 

Source
pub trait QueryFunction:
    Fn(Entity, &World) -> bool
    + Send
    + Sync
    + 'static { }
Expand description

A function that behaves as a predicate for a Query

Implementors§

Source§

impl<T: Fn(Entity, &World) -> bool + Send + Sync + 'static> QueryFunction for T