[][src]Trait dinotree::notsorted::NotSortedRefTrait

pub trait NotSortedRefTrait where
    Self::Item: HasAabb<Num = Self::Num>, 
{ type Item: HasAabbMut<Num = Self::Num, Inner = Self::Inner>; 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 algorithms can use the not sorted version of the dinotree

Associated Types

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

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: NotSortedRefTrait> NotSortedRefTrait 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: NotSortedRefMutTrait> NotSortedRefTrait 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> NotSortedRefTrait for NotSorted<'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.

Loading content...