[][src]Trait dinotree_alg::HasInner

pub trait HasInner: HasAabb {
    type Inner;
    fn get_inner(&self) -> (&Rect<Self::Num>, &Self::Inner);
fn get_inner_mut(&mut self) -> (&Rect<Self::Num>, &mut Self::Inner); fn inner_mut(&mut self) -> &mut Self::Inner { ... }
fn inner(&self) -> &Self::Inner { ... } }

Trait exposes an api where you can return a read-only reference to the axis-aligned bounding box and at the same time return a mutable reference to a seperate inner section.

Associated Types

type Inner

Loading content...

Required methods

fn get_inner(&self) -> (&Rect<Self::Num>, &Self::Inner)

fn get_inner_mut(&mut self) -> (&Rect<Self::Num>, &mut Self::Inner)

Loading content...

Provided methods

fn inner_mut(&mut self) -> &mut Self::Inner

fn inner(&self) -> &Self::Inner

Loading content...

Implementors

impl<'a, N: NumTrait, T> HasInner for BBoxMut<'a, N, T>[src]

type Inner = T

impl<'a, T: HasInner> HasInner for BBoxIndirect<'a, T>[src]

type Inner = T::Inner

impl<'a, T: HasInner> HasInner for ProtectedBBox<'a, T>[src]

type Inner = T::Inner

impl<N: NumTrait, T> HasInner for BBox<N, T>[src]

type Inner = T

impl<N: NumTrait, T> HasInner for BBoxPtr<N, T>[src]

type Inner = T

Loading content...