Struct librsnek::compiler::graph::DiGraph
[−]
[src]
pub struct DiGraph<T: Node + ?Sized + Serialize> { nodes: RefCell<Vec<Box<T>>>, }
Adjacency List Style Directed Graph
Fields
nodes: RefCell<Vec<Box<T>>>
Methods
impl<T> DiGraph<T> where
T: Node + Clone + Serialize,
[src]
T: Node + Clone + Serialize,
fn new(root: T) -> Self
Trait Implementations
impl<T: Debug + Node + ?Sized + Serialize> Debug for DiGraph<T>
[src]
impl<T: PartialEq + Node + ?Sized + Serialize> PartialEq for DiGraph<T>
[src]
fn eq(&self, __arg_0: &DiGraph<T>) -> bool
This method tests for self
and other
values to be equal, and is used
fn ne(&self, __arg_0: &DiGraph<T>) -> bool
This method tests for !=
.
impl<T: Eq + Node + ?Sized + Serialize> Eq for DiGraph<T>
[src]
fn assert_receiver_is_total_eq(&self)
impl<T: Ord + Node + ?Sized + Serialize> Ord for DiGraph<T>
[src]
fn cmp(&self, __arg_0: &DiGraph<T>) -> Ordering
This method returns an Ordering
between self
and other
.
impl<T: PartialOrd + Node + ?Sized + Serialize> PartialOrd for DiGraph<T>
[src]
fn partial_cmp(&self, __arg_0: &DiGraph<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists.
fn lt(&self, __arg_0: &DiGraph<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator.
fn le(&self, __arg_0: &DiGraph<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
fn gt(&self, __arg_0: &DiGraph<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator.
fn ge(&self, __arg_0: &DiGraph<T>) -> bool
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]
fn clone(&self) -> DiGraph<T>
Returns a copy of the value.
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
.
impl<T> Graph for DiGraph<T> where
T: Node + Clone + Serialize,
[src]
T: Node + Clone + Serialize,