pub trait Predicate<T>: 'static + Send + Sync + Fn(&T) -> bool { }
A predicate on a type <T>.
<T>
Predicate is an alias for any type implementing Fn(&T) -> bool (with a few extra bounds to support concurrency). It is used by Notifier to represent the preferences of subscribers when filtering messages of type T.
Predicate
Fn(&T) -> bool
Notifier
T