pub trait QueryComponent {
type Item<'world>: QueryComponent;
// Required methods
fn get_component_ids() -> Vec<ComponentId> ⓘ;
fn get_component<'world>(
world: UnsafeWorldCell<'world>,
entity_id: EntityId,
) -> Self::Item<'world>;
}
Required Associated Types§
type Item<'world>: QueryComponent
Required Methods§
fn get_component_ids() -> Vec<ComponentId> ⓘ
fn get_component<'world>( world: UnsafeWorldCell<'world>, entity_id: EntityId, ) -> Self::Item<'world>
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.