[][src]Struct dinotree::DinoTree

pub struct DinoTree<A: AxisTrait, T: HasAabb> { /* fields omitted */ }

The datastructure this crate revolves around.

Methods

impl<A: AxisTrait, T: HasAabb> DinoTree<A, T>
[src]

pub fn as_ref_mut(&mut self) -> DinoTreeRefMut<A, T>
[src]

Return a mutable reference to the tree.

pub fn as_ref(&self) -> DinoTreeRef<A, T>
[src]

Return a reference to the tree.

pub fn apply<X>(
    &self,
    bots: &mut [X],
    conv: impl Fn(&T, &mut X)
)
[src]

Returns the bots to their original ordering. This is what you would call after you used this tree to make the changes you made while querying the tree (through use of vistr_mut) be copied back into the original list.

pub fn apply_into<X>(
    &mut self,
    bots: &[X],
    conv: impl Fn(&X, &mut T)
)
[src]

Apply changes to the bots in the tree (not the aabb) without recreating the tree.

Auto Trait Implementations

impl<A, T> Send for DinoTree<A, T> where
    T: Send,
    <T as HasAabb>::Num: Send

impl<A, T> Sync for DinoTree<A, T> where
    T: Sync,
    <T as HasAabb>::Num: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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