[][src]Struct dinotree::bbox::BBoxMut

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

AABB and mutable pointer to Inner.

Fields

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

Methods

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

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

Trait Implementations

impl<'a, N: NumTrait, T> HasAabb for BBoxMut<'a, N, T>[src]

type Num = N

type Inner = T

impl<'a, N: NumTrait, T> HasAabbMut for BBoxMut<'a, N, T>[src]

Auto Trait Implementations

impl<'a, N, T> Unpin for BBoxMut<'a, N, T> where
    N: Unpin

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

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

impl<'a, N, T> !UnwindSafe for BBoxMut<'a, N, T>

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