pub trait DotFormat: LinkView + Sized {
// Required method
fn dot_format(&self) -> DotFormatter<'_, Self>;
// Provided method
fn dot_string(&self) -> String { ... }
}Expand description
A trait for encoding a graph in dot format.
Required Methods§
Sourcefn dot_format(&self) -> DotFormatter<'_, Self>
fn dot_format(&self) -> DotFormatter<'_, Self>
Initialize a DotFormatter for the graph.
Provided Methods§
Sourcefn dot_string(&self) -> String
fn dot_string(&self) -> String
Encode the graph in dot format.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.