pub trait HasInner: Aabb {
type Inner;
fn destruct_mut(&mut self) -> (&Rect<Self::Num>, &mut Self::Inner);
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.