[][src]Struct dinotree::BBox

#[repr(C)]
pub struct BBox<N: NumTrait, T> { pub inner: T, // some fields omitted }

A wrapper type around a type T and bounding box where the bounding box is hidden. This is what is inserted into the tree. This way the user cannot modify the bounding box since it is hidden, with only read access.

Fields

inner: T

Methods

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

pub unsafe 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.

pub unsafe fn set_aabb(&mut self, aabb: Rect<N>)
[src]

Unsafe since user could call this function using a mutable reference from inside of a callback function of a dinotree query function.

Trait Implementations

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

type Num = N

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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