HasInner

Trait HasInner 

Source
pub trait HasInner: Aabb {
    type Inner;

    // Required method
    fn destruct_mut(&mut self) -> (&Rect<Self::Num>, &mut Self::Inner);

    // Provided method
    fn get_inner_mut(&mut self) -> &mut Self::Inner { ... }
}
Expand description

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 separate inner section.

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

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

Implementors§

Source§

impl<N: Num, T> HasInner for &mut BBox<N, T>

Source§

type Inner = T

Source§

impl<N: Num, T> HasInner for BBox<N, T>

Source§

type Inner = T

Source§

impl<N: Num, T> HasInner for BBoxMut<'_, N, T>

Source§

type Inner = T