[][src]Trait dinotree::tree::DinoTreeRefTrait

pub trait DinoTreeRefTrait where
    Self::Item: HasAabb<Num = Self::Num>, 
{ type Item: HasAabbMut<Inner = Self::Inner, Num = Self::Num>; type Axis: AxisTrait; type Num: NumTrait; type Inner; fn axis(&self) -> Self::Axis;
fn vistr(&self) -> Vistr<Self::Item>;
fn height(&self) -> usize;
fn num_nodes(&self) -> usize;
fn num_bots(&self) -> usize; }

The trait through which dinotree algorithms may use the tree. We expose a trait so that both the copy and non copy version of the tree have the same interface.

Associated Types

type Item: HasAabbMut<Inner = Self::Inner, Num = Self::Num>

type Axis: AxisTrait

type Num: NumTrait

type Inner

Loading content...

Required methods

fn axis(&self) -> Self::Axis

fn vistr(&self) -> Vistr<Self::Item>

fn height(&self) -> usize

Return the height of the dinotree.

fn num_nodes(&self) -> usize

Return the number of nodes of the dinotree.

fn num_bots(&self) -> usize

Return the number of bots in the tree.

Loading content...

Implementations on Foreign Types

impl<'_, K: DinoTreeRefTrait> DinoTreeRefTrait for &'_ K[src]

type Item = K::Item

type Axis = K::Axis

type Num = K::Num

type Inner = K::Inner

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

Return the height of the dinotree.

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

Return the number of nodes of the dinotree.

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

Return the number of bots in the tree.

impl<'_, K: DinoTreeRefMutTrait> DinoTreeRefTrait for &'_ mut K[src]

type Item = K::Item

type Axis = K::Axis

type Num = K::Num

type Inner = K::Inner

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

Return the height of the dinotree.

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

Return the number of nodes of the dinotree.

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

Return the number of bots in the tree.

Loading content...

Implementors

impl<'a, A: AxisTrait, N: NumTrait, T> DinoTreeRefTrait for DinoTree<'a, A, N, T>[src]

type Item = BBoxMut<'a, N, T>

type Axis = A

type Num = N

type Inner = T

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

Return the height of the dinotree.

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

Return the number of nodes of the dinotree.

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

Return the number of bots in the tree.

impl<'a, A: AxisTrait, T: HasAabbMut> DinoTreeRefTrait for DinoTreeGeneric<'a, A, T>[src]

type Item = T

type Axis = A

type Num = T::Num

type Inner = T::Inner

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

Return the height of the dinotree.

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

Return the number of nodes of the dinotree.

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

Return the number of bots in the tree.

Loading content...