[][src]Struct dinotree::DinoTreeRefMut

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

Mutable referance to a dinotree container.

Methods

impl<'a, A: AxisTrait, T: HasAabb> DinoTreeRefMut<'a, A, T>
[src]

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

pub fn vistr_mut(&mut self) -> VistrMut<T>
[src]

pub fn into_vistr_mut(self) -> VistrMut<'a, T>
[src]

Important traits for IterMut<'a, T>
pub fn iter_mut(&mut self) -> IterMut<T>
[src]

Iterate over all the bots in the tree. The order in which they are iterated over is dfs pre order as they have been binned and sorted into the dinotree.

Important traits for IterMut<'a, T>
pub fn into_iter_mut(self) -> IterMut<'a, T>
[src]

Iterate over all bots.

Methods from Deref<Target = DinoTreeRef<'a, A, T>>

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

pub fn axis(&self) -> A
[src]

pub fn vistr(&self) -> Vistr<T>
[src]

Important traits for Iter<'a, T>
pub fn iter(&self) -> Iter<T>
[src]

Iterate over all the bots in the tree. The order in which they are iterated over is dfs pre order as they have been binned and sorted into the dinotree.

pub fn height(&self) -> usize
[src]

Return the height of the dinotree.

pub fn num_nodes(&self) -> usize
[src]

Return the number of nodes of the dinotree.

pub fn num_bots(&self) -> usize
[src]

Return the number of bots in the tree.

#[must_use]
pub fn are_invariants_met(&self) -> bool
[src]

Returns Ok, then this tree's invariants are being met. Should always return true, unless the user corrupts the trees memory or if the contract of the HasAabb trait are not upheld.

Trait Implementations

impl<'a, A: AxisTrait, T: HasAabb> Deref for DinoTreeRefMut<'a, A, T>
[src]

type Target = DinoTreeRef<'a, A, T>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, A, T> Send for DinoTreeRefMut<'a, A, T> where
    T: Send,
    <T as HasAabb>::Num: Send

impl<'a, A, T> Sync for DinoTreeRefMut<'a, 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]