[][src]Struct collision::dbvt::TreeValueWrapped

pub struct TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
{ pub value: V, pub bound: B, // some fields omitted }

Value together with bounding volume, for use with DBVT.

Fields

value: V

The value

bound: B

The bounding volume

Methods

impl<V, B> TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

pub fn new(
    value: V,
    bound: B,
    margin: <B::Point as EuclideanSpace>::Diff
) -> Self
[src]

Create a new shape

Trait Implementations

impl<V, B> TreeValue for TreeValueWrapped<V, B> where
    V: Clone,
    B: Bound + Clone,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

type Bound = B

Bounding volume type

impl<V, B> HasBound for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

type Bound = B

Bounding volume type

impl<V: Clone, B: Clone> Clone for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug,
    B::Point: Clone
[src]

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

Performs copy-assignment from source. Read more

impl<V, B, P> From<(V, B, <P as EuclideanSpace>::Diff)> for TreeValueWrapped<V, B> where
    P: EuclideanSpace,
    B: Bound<Point = P> + Clone,
    P::Diff: Debug
[src]

impl<V, B> From<(V, B)> for TreeValueWrapped<V, B> where
    B: Bound + Clone,
    <<B as Bound>::Point as EuclideanSpace>::Diff: Debug + Zero
[src]

impl<V: Debug, B: Debug> Debug for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug,
    B::Point: Debug
[src]

Auto Trait Implementations

impl<V, B> Send for TreeValueWrapped<V, B> where
    B: Send,
    V: Send,
    <<B as Bound>::Point as EuclideanSpace>::Diff: Send

impl<V, B> Sync for TreeValueWrapped<V, B> where
    B: Sync,
    V: Sync,
    <<B as Bound>::Point as EuclideanSpace>::Diff: 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
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]