mermaid-builder 0.1.2

A Rust library for generating Mermaid diagrams using the builder pattern.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Module defining the `TabbedDisplay` trait for formatted output with
//! indentation.

/// Trait for displaying objects with indentation.
pub trait TabbedDisplay {
    /// Formats the object with the given indentation level.
    ///
    /// # Errors
    ///
    /// Returns an error if formatting fails.
    fn fmt_tabbed(&self, f: &mut core::fmt::Formatter<'_>, tab_count: usize) -> core::fmt::Result;
}