codetwin 0.1.10

A code to diagram/documentation generator.
Documentation
1
2
3
4
5
6
7
8
use crate::core::ir::Blueprint;
use anyhow::Result;

/// Layout transforms a collection of Blueprints into file outputs.
/// Returns a list of (filename, content) pairs to be written by the engine.
pub trait Layout {
    fn format(&self, blueprints: &[Blueprint]) -> Result<Vec<(String, String)>>;
}