pub trait Graph<'a> {
// Required methods
fn get_str(&self) -> &'a str;
fn get_label(&self) -> String;
fn to_dot_recurse(&self) -> String;
fn get_id(&self) -> String;
// Provided method
fn to_dot(&self) -> String { ... }
}
Required Methods§
Sourcefn to_dot_recurse(&self) -> String
fn to_dot_recurse(&self) -> String
Generates arrows for each children and returns the concatenation of the
call to to_dot
on them.
TODO: Find a non-intrusive fashion to do the same thing.