[][src]Struct dinotree::bbox::BBox

#[repr(C)]
pub struct BBox<N: NumTrait, T> {
    pub rect: Rect<N>,
    pub inner: T,
}

AABB and Inner.

Fields

rect: Rect<N>inner: T

Methods

impl<N: NumTrait, T> BBox<N, T>[src]

pub fn new(rect: Rect<N>, inner: T) -> BBox<N, T>[src]

Unsafe since user could create a new BBox with a different aabb inside of a callback function and assign it to the mutable reference.

Trait Implementations

impl<N: NumTrait, T> HasAabb for BBox<N, T>[src]

type Num = N

type Inner = T

impl<N: NumTrait, T> HasAabbMut for BBox<N, T>[src]

impl<N: NumTrait + Debug, T: Debug> Debug for BBox<N, T>[src]

impl<N: Copy + NumTrait, T: Copy> Copy for BBox<N, T>[src]

impl<N: Clone + NumTrait, T: Clone> Clone for BBox<N, T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<N, T> Unpin for BBox<N, T> where
    N: Unpin,
    T: Unpin

impl<N, T> Sync for BBox<N, T> where
    T: Sync

impl<N, T> Send for BBox<N, T> where
    T: Send

impl<N, T> UnwindSafe for BBox<N, T> where
    N: UnwindSafe,
    T: UnwindSafe

impl<N, T> RefUnwindSafe for BBox<N, T> where
    N: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.