pub trait DotPrinter {
    fn print(&self, ctx: &mut PrinterContext) -> String;
}
Expand description

The trait allowing to transform a graph into the dot file:

Example:

   fn test(){
       use dot_generator::*;
       use dot_structures::*;
       use self::graphviz_rust::printer::PrinterContext;
       use self::graphviz_rust::printer::DotPrinter;

       let mut ctx =PrinterContext::default();
       ctx.always_inline();
       ctx.with_indent_step(4);
       let graph = graph!(strict di id!("t"));

       let string = graph.print(&mut ctx);
   }

Required Methods

Implementations on Foreign Types

Implementors