Struct librsnek::compiler::graph::DiGraph [] [src]

pub struct DiGraph<T: Node + ?Sized + Serialize> {
    nodes: RefCell<Vec<Box<T>>>,
}

Adjacency List Style Directed Graph

Fields

Methods

impl<T> DiGraph<T> where
    T: Node + Clone + Serialize
[src]

Trait Implementations

impl<T: Debug + Node + ?Sized + Serialize> Debug for DiGraph<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + Node + ?Sized + Serialize> PartialEq for DiGraph<T>
[src]

This method tests for self and other values to be equal, and is used

This method tests for !=.

impl<T: Eq + Node + ?Sized + Serialize> Eq for DiGraph<T>
[src]

impl<T: Ord + Node + ?Sized + Serialize> Ord for DiGraph<T>
[src]

This method returns an Ordering between self and other.

impl<T: PartialOrd + Node + ?Sized + Serialize> PartialOrd for DiGraph<T>
[src]

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

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

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

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

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

impl<T: Clone + Node + ?Sized + Serialize> Clone for DiGraph<T>
[src]

Returns a copy of the value.

Performs copy-assignment from source.

impl<T> Graph for DiGraph<T> where
    T: Node + Clone + Serialize
[src]

The number of nodes in the Graph.

Insert a node into the graph when it already defines its id and the id of its

Get a node by id.