tui_theme_builder_internal/lib.rs
1/// A trait for building a theme from a given context.
2///
3/// This trait is typically derived using `tui-theme-builder::ThemeBuilder` from the `tui-theme-builder-derive` crate.
4pub trait ThemeBuilder {
5 /// The type of context used to build the theme.
6 type Context;
7
8 /// Builds and returns an instance of the implementing type using the provided context.
9 fn build(context: &Self::Context) -> Self;
10}