use std::error::Error;
use std::fs::File;
use vizz::Graph;
use vizz::Visualize;
#[derive(Visualize)]
struct MyStruct(u8, usize, String);
pub fn main() -> Result<(), Box<dyn Error>> {
let my_struct = MyStruct(45, 42_000_000_000, String::from("this is my tuple struct"));
let mut dot_file = File::create("my_struct.dot")?;
Graph::new().add_node(&my_struct).write_to(&mut dot_file)?;
Ok(())
}