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.
Methods
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: PartialEq, T> PartialEq for RefWithCost<'a, N, T>
[src]
fn eq(&self, other: &RefWithCost<'a, N, T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a, N: PartialEq, T> Eq for RefWithCost<'a, N, T>
[src]
impl<'a, N: PartialOrd, T> PartialOrd for RefWithCost<'a, N, T>
[src]
fn partial_cmp(&self, other: &RefWithCost<'a, N, T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a, N: PartialOrd, T> Ord for RefWithCost<'a, N, T>
[src]
fn cmp(&self, other: &RefWithCost<'a, N, T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
Auto Trait Implementations
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,