Trait QueryStorage

Source
pub trait QueryStorage {
    type Id;

    // Required methods
    fn try_push(&mut self, id: Self::Id) -> bool;
    fn clear(&mut self);
}
Expand description

Arbitrary storage for query results.

Required Associated Types§

Source

type Id

Id of an entity in the storage.

Required Methods§

Source

fn try_push(&mut self, id: Self::Id) -> bool

Tries to push a new id in the storage.

Source

fn clear(&mut self)

Clears the storage.

Implementations on Foreign Types§

Source§

impl<I> QueryStorage for Vec<I>

Source§

type Id = I

Source§

fn try_push(&mut self, intersection: I) -> bool

Source§

fn clear(&mut self)

Implementors§

Source§

impl<I, const CAP: usize> QueryStorage for ArrayVec<I, CAP>

Source§

type Id = I