tui-theme-builder-internal 0.2.0

tui-theme-builder internals
Documentation
1
2
3
4
5
6
7
8
9
10
/// A trait for building a theme from a given context.
///
/// This trait is typically derived using `tui-theme-builder::ThemeBuilder` from the `tui-theme-builder-derive` crate.
pub trait ThemeBuilder {
    /// The type of context used to build the theme.
    type Context;

    /// Builds and returns an instance of the implementing type using the provided context.
    fn build(context: &Self::Context) -> Self;
}