Skip to main content

DotFormat

Trait DotFormat 

Source
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§

Source

fn dot_format(&self) -> DotFormatter<'_, Self>

Initialize a DotFormatter for the graph.

Provided Methods§

Source

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.

Implementors§

Source§

impl<G> DotFormat for G
where G: LinkView,