Trait AccessQuery

Source
pub trait AccessQuery {
    // Required method
    fn query<'c, Q: Query<'c>>(
        &'c self,
        interrogatee: Entity,
    ) -> Option<Q::Response>;
}
Expand description

Trait for accesses that can execute queries.

Required Methods§

Source

fn query<'c, Q: Query<'c>>( &'c self, interrogatee: Entity, ) -> Option<Q::Response>

Query the given entity for the given elements.

Panics if the entity is dead.

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.

Implementors§