Struct ncollide3d::utils::RefWithCost[][src]

pub struct RefWithCost<'a, N, T: 'a> {
    pub object: &'a T,
    pub cost: N,
}

A reference packed with a cost value.

Fields

object: &'a T

The reference to an object.

cost: N

The cost of the object.

Implementations

impl<'a, N, T> RefWithCost<'a, N, T>[src]

pub fn new(object: &'a T, cost: N) -> RefWithCost<'a, N, T>[src]

Creates a new reference packed with a cost value.

Trait Implementations

impl<'a, N: PartialOrd, T> Ord for RefWithCost<'a, N, T>[src]

impl<'a, N: PartialEq, T> PartialEq<RefWithCost<'a, N, T>> for RefWithCost<'a, N, T>[src]

impl<'a, N: PartialOrd, T> PartialOrd<RefWithCost<'a, N, T>> for RefWithCost<'a, N, T>[src]

impl<'a, N: PartialEq, T> Eq for RefWithCost<'a, N, T>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]