fyrox_math::quadtree

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)

source§

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

source§

type Id = I

source§

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

source§

fn clear(&mut self)

Implementors§