[][src]Trait dinotree_alg::prelude::NodeTrait

pub trait NodeTrait {
    type T: HasAabb<Num = Self::Num>;
    type Num: NumTrait;
    fn get(&self) -> NodeRef<Self::T>;
fn get_mut(&mut self) -> NodeRefMut<Self::T>; }

Expose a node trait api so that we can have nodes made up of both &mut [T] and *mut [T]. We ideally want to use the lifetimed version of NodeMut, but but for DinoTreeOwned we must use NodePtr.

Associated Types

type T: HasAabb<Num = Self::Num>

type Num: NumTrait

Loading content...

Required methods

fn get(&self) -> NodeRef<Self::T>

fn get_mut(&mut self) -> NodeRefMut<Self::T>

Loading content...

Implementors

impl<'a, T: HasAabb> NodeTrait for NodeMut<'a, T>[src]

type T = T

type Num = T::Num

impl<T: HasAabb> NodeTrait for NodePtr<T>[src]

type T = T

type Num = T::Num

Loading content...