Skip to main content

Visualize

Trait Visualize 

Source
pub trait Visualize {
    // Required method
    fn visualize(&self) -> Result<String>;
}
Expand description

Trait for types that can be visualized

Required Methods§

Source

fn visualize(&self) -> Result<String>

Visualize the object as an SVG string

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, L: Language> Visualize for GreenTree<'a, L>

Source§

impl<'a, L: Language> Visualize for RedTree<'a, L>

Implementors§