[][src]Struct dinotree_alg::collectable::CollectableDinoTree

pub struct CollectableDinoTree<'a, A: Axis, N: Num, T> { /* fields omitted */ }

Methods

impl<'a, N: Num, T> CollectableDinoTree<'a, DefaultA, N, T>[src]

pub fn new(
    bots: &'a mut [T],
    func: impl FnMut(&mut T) -> Rect<N>
) -> CollectableDinoTree<'a, DefaultA, N, T>
[src]

impl<'a, A: Axis, N: Num, T> CollectableDinoTree<'a, A, N, T>[src]

pub fn get_bots(&self) -> &[T][src]

pub fn get_bots_mut(&mut self) -> &mut [T][src]

pub fn get_mut(&mut self) -> &mut DinoTree<A, BBox<N, &mut T>>[src]

pub fn collect_all<D>(
    &mut self,
    func: impl FnMut(&Rect<N>, &mut T) -> Option<D>
) -> SingleCollisionList<'a, T, D>
[src]

pub fn collect_intersections_list<D: Send + Sync>(
    &mut self,
    func: impl Fn(&mut T, &mut T) -> Option<D> + Send + Sync + Copy
) -> BotCollision<'a, T, D>
[src]

impl<'a, A: Axis + Send + Sync, N: Num + Send + Sync, T: Send + Sync> CollectableDinoTree<'a, A, N, T>[src]

pub fn collect_all_par<D: Send + Sync>(
    &mut self,
    func: impl Fn(&Rect<N>, &mut T) -> Option<D> + Send + Sync + Copy
) -> SingleCollisionList<'a, T, D>
[src]

pub fn collect_intersections_list_par<D: Send + Sync>(
    &mut self,
    func: impl Fn(&mut T, &mut T) -> Option<D> + Send + Sync + Copy
) -> BotCollisionPar<'a, T, D>
[src]

Auto Trait Implementations

impl<'a, A, N, T> RefUnwindSafe for CollectableDinoTree<'a, A, N, T> where
    A: RefUnwindSafe,
    N: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, A, N, T> Send for CollectableDinoTree<'a, A, N, T> where
    T: Send

impl<'a, A, N, T> Sync for CollectableDinoTree<'a, A, N, T> where
    T: Sync

impl<'a, A, N, T> Unpin for CollectableDinoTree<'a, A, N, T> where
    A: Unpin,
    N: Unpin

impl<'a, A, N, T> !UnwindSafe for CollectableDinoTree<'a, A, N, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.