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§
Trait Implementations§
impl<N: Copy, T: Copy> Copy for BBox<N, T>
impl<'a, N, T> ManySwap for BBox<N, &'a mut T>
impl<N> ManySwap for BBox<N, ()>
impl<N> ManySwap for BBox<N, u32>
impl<N> ManySwap for BBox<N, u64>
impl<N> ManySwap for BBox<N, usize>
Auto Trait Implementations§
impl<N, T> RefUnwindSafe for BBox<N, T>where N: RefUnwindSafe, T: RefUnwindSafe,
impl<N, T> Send for BBox<N, T>where N: Send, T: Send,
impl<N, T> Sync for BBox<N, T>where N: Sync, T: Sync,
impl<N, T> Unpin for BBox<N, T>where N: Unpin, T: Unpin,
impl<N, T> UnwindSafe for BBox<N, T>where N: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more