pub trait TypedQueryFetch<'a, const LOCKING: bool> {
type Value;
type Access;
// Required methods
fn does_accept_archetype(archetype: &Archetype) -> bool;
fn access(archetype: &'a Archetype) -> Result<Self::Access, QueryError>;
fn fetch(access: &mut Self::Access) -> Option<Self::Value>;
// Provided method
fn unique_access(output: &mut HashSet<TypeHash>) { ... }
}Required Associated Types§
Required Methods§
fn does_accept_archetype(archetype: &Archetype) -> bool
fn access(archetype: &'a Archetype) -> Result<Self::Access, QueryError>
fn fetch(access: &mut Self::Access) -> Option<Self::Value>
Provided Methods§
fn unique_access(output: &mut HashSet<TypeHash>)
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.