rusty-mermaid-core 0.2.0

Shared types, geometry, drawing primitives, and traits
Documentation
1
2
3
4
5
6
7
8
9
use crate::Scene;

/// Backend-agnostic rendering trait.
/// SVG, gpui, or any future backend implements this.
/// Static dispatch: callers use `impl Renderer` or generics.
pub trait Renderer {
    type Output;
    fn render(&self, scene: &Scene) -> Self::Output;
}