pub trait Access: Access {
type Item<'world>;
}Expand description
A required (&T, &mut T) or optional (Option<&T>, Option<&mut T>)
component access, or the entity identity itself.
Optional accesses return optional borrow guards, not naked references. They
match every live entity, returning None only for absent components. See
World::get and World::query for runnable examples.
Required Associated Types§
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.