Trait sparsey::UnfilteredQueryElement[][src]

pub unsafe trait UnfilteredQueryElement<'a> {
    type Item: 'a;
    type Component: Component;
    fn group_info(&self) -> Option<GroupInfo<'a>>;
fn world_tick(&self) -> Ticks;
fn change_tick(&self) -> Ticks;
fn contains<F>(&self, entity: Entity, filter: &F) -> bool
    where
        F: QueryElementFilter<Self::Component>
;
fn get_index_entity(&self, entity: Entity) -> Option<&IndexEntity>;
unsafe fn get_unchecked<F>(
        self,
        index: usize,
        filter: &F
    ) -> Option<Self::Item>
    where
        F: QueryElementFilter<Self::Component>
;
fn split(
        self
    ) -> (&'a [Entity], &'a EntitySparseArray, NonNull<Self::Component>, NonNull<ChangeTicks>);
unsafe fn get_from_parts_unchecked<F>(
        components: NonNull<Self::Component>,
        ticks: NonNull<ChangeTicks>,
        index: usize,
        filter: &F,
        world_tick: Ticks,
        change_tick: Ticks
    ) -> Option<Self::Item>
    where
        F: QueryElementFilter<Self::Component>
; }
Expand description

Trait implemented by unfiltered items that can be used in queries.

Associated Types

Required methods

Implementors