[][src]Struct dinotree::bbox::BBoxRef

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

Reference to AABB and Reference to Inner.

Fields

rect: &'a Rect<N>inner: &'a T

Methods

impl<'a, N: NumTrait, T> BBoxRef<'a, N, T>[src]

pub fn new(rect: &'a Rect<N>, inner: &'a T) -> BBoxRef<'a, 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.

Auto Trait Implementations

impl<'a, N, T> Unpin for BBoxRef<'a, N, T>

impl<'a, N, T> Send for BBoxRef<'a, N, T> where
    T: Sync

impl<'a, N, T> Sync for BBoxRef<'a, N, T> where
    T: Sync

impl<'a, N, T> UnwindSafe for BBoxRef<'a, N, T> where
    N: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, N, T> RefUnwindSafe for BBoxRef<'a, 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]