[][src]Struct dinotree::DinoTreeRef

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

Referance to a dinotree container.

Methods

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

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

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

pub fn into_vistr(self) -> Vistr<'a, T>
[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> IntoIterator for DinoTreeRef<'a, A, T>
[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

impl<'a, A, T> Sync for DinoTreeRef<'a, A, T> where
    T: Sync,
    <T as HasAabb>::Num: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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]