pub unsafe trait ArchFilter: Sized {
// Required method
unsafe fn filter<'a>(
arch_storage: *const ArchEntityStorage,
index: ArchStorageIndex,
comp_factory: &'a ComponentFactory,
) -> impl FilterResult;
}Required Methods§
Sourceunsafe fn filter<'a>(
arch_storage: *const ArchEntityStorage,
index: ArchStorageIndex,
comp_factory: &'a ComponentFactory,
) -> impl FilterResult
unsafe fn filter<'a>( arch_storage: *const ArchEntityStorage, index: ArchStorageIndex, comp_factory: &'a ComponentFactory, ) -> impl FilterResult
§Safety
- The caller must ensure that the
ArchStorageIndexis withing the bounds of the [ArchStorage] (as specified in [ArchStorage::get_component_unchecked]). - The caller must ensure that the raw pointer to [
ArchStorage] is valid, and usable.
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.