decal 0.6.0

Declarative DSL for describing scenes and rendering them to SVG or PNG
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::Sealed;
use crate::layout::Node;

/// Core trait implemented by all node builders.
pub trait Drawable: Sealed + Sized {
    /// Finalizes the builder and produces a concrete [`Node`].
    ///
    /// # Returns
    /// - The concrete [`Node`].
    fn finish(self) -> Node;
}