Struct graphsearch::Vertex [] [src]

pub struct Vertex {
    pub cost: i32,
    pub node: usize,
}

A vertex between two Nodes with an associated i32 cost and a target node. Vertex derives Copy, Debug, Eq and PartialEq and implements Ord and PartialOrd as we use it ordered compound types.

Fields

cost is defiened as an ì32, which might change

node, an usize index of the node at the other end of this vertex

Trait Implementations

impl Eq for Vertex
[src]

impl PartialEq for Vertex
[src]

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

This method tests for !=.

impl Debug for Vertex
[src]

Formats the value using the given formatter.

impl Ord for Vertex
[src]

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

impl PartialOrd for Vertex
[src]

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

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

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

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

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