Struct broccoli::node::BBox [−][src]
#[repr(C)]pub struct BBox<N, T> { pub rect: Rect<N>, pub inner: T, }
Expand description
A bounding box container object that implements Aabb
and HasInner
.
Note that &mut BBox<N,T>
also implements Aabb
and HasInner
.
Using this one struct the user can construct the following types for bboxes to be inserted into the tree:
BBox<N,T>
(direct)&mut BBox<N,T>
(indirect)BBox<N,&mut T>
(rect direct, T indirect)
Fields
rect: Rect<N>
inner: T
Implementations
Constructor. Also consider using crate::bbox()
Change the number type of the Rect using promitive cast.
Change the number type using From
Trait Implementations
Auto Trait Implementations
impl<N, T> RefUnwindSafe for BBox<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> UnwindSafe for BBox<N, T> where
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more