[−][src]Trait dinotree::tree::DinoTreeRefTrait
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
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.
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 axis(&self) -> Self::Axis
[src]
fn vistr(&self) -> Vistr<Self::Item>
[src]
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 axis(&self) -> Self::Axis
[src]
fn vistr(&self) -> Vistr<Self::Item>
[src]
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.
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 axis(&self) -> Self::Axis
[src]
fn vistr(&self) -> Vistr<Self::Item>
[src]
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 axis(&self) -> Self::Axis
[src]
fn vistr(&self) -> Vistr<Self::Item>
[src]
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.