pub trait ResourceQuery {
type Item<'r>;
type State<'s>: QueryState<'s>;
// Required method
fn query<'r, 's>(
resources: &'r Resources,
state: Self::State<'s>,
) -> Option<Self::Item<'r>>;
}Required Associated Types§
type Item<'r>
type State<'s>: QueryState<'s>
Required Methods§
fn query<'r, 's>( resources: &'r Resources, state: Self::State<'s>, ) -> Option<Self::Item<'r>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.