[−][src]Struct broccoli::BBox
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 dinotree:
BBox<N,T>
(direct)&mut BBox<N,T>
(indirect)BBox<N,&mut T>
(rect direct, T indirect) (best performnace)BBox<N,*mut T>
(used internally byDinoTreeOwned
)
Fields
rect: Rect<N>
inner: T
Implementations
impl<N, T> BBox<N, T>
[src]
Trait Implementations
impl<N: Num, T, '_> Aabb for &'_ mut BBox<N, T>
[src]
impl<N: Num, T> Aabb for BBox<N, T>
[src]
impl<N: Clone, T: Clone> Clone for BBox<N, T>
[src]
impl<N: Copy, T: Copy> Copy for BBox<N, T>
[src]
impl<N: Debug, T: Debug> Debug for BBox<N, T>
[src]
impl<N: Num, T, '_> HasInner for &'_ mut BBox<N, T>
[src]
type Inner = T
fn get_inner(&self) -> (&Rect<N>, &Self::Inner)
[src]
fn get_inner_mut(&mut self) -> (&Rect<N>, &mut Self::Inner)
[src]
fn inner_mut(&mut self) -> &mut Self::Inner
[src]
fn inner(&self) -> &Self::Inner
[src]
impl<N: Num, T> HasInner for BBox<N, T>
[src]
Auto Trait Implementations
impl<N, T> RefUnwindSafe for BBox<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for BBox<N, T> where
N: Send,
T: Send,
N: Send,
T: Send,
impl<N, T> Sync for BBox<N, T> where
N: Sync,
T: Sync,
N: Sync,
T: Sync,
impl<N, T> Unpin for BBox<N, T> where
N: Unpin,
T: Unpin,
N: Unpin,
T: Unpin,
impl<N, T> UnwindSafe for BBox<N, T> where
N: UnwindSafe,
T: UnwindSafe,
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,