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]
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: 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: 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: PartialOrd, T> PartialOrd<RefWithCost<'a, N, T>> for RefWithCost<'a, N, T>
[src]fn partial_cmp(&self, other: &RefWithCost<'a, N, T>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<'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,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, N, T> Send for RefWithCost<'a, N, T> where
N: Send,
T: Sync,
N: Send,
T: Sync,
impl<'a, N, T> Sync for RefWithCost<'a, N, T> where
N: Sync,
T: Sync,
N: Sync,
T: Sync,
impl<'a, N, T> Unpin for RefWithCost<'a, N, T> where
N: Unpin,
N: Unpin,
impl<'a, N, T> UnwindSafe for RefWithCost<'a, N, T> where
N: UnwindSafe,
T: RefUnwindSafe,
N: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]