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