Struct ncollide2d::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

The reference to an object.

The cost of the object.

Methods

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

[src]

Creates a new reference packed with a cost value.

Trait Implementations

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

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]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

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

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