Skip to main content

DesignSystem

Trait DesignSystem 

Source
pub trait DesignSystem {
    // Required methods
    fn info() -> &'static DesignSystemInfo;
    fn tokens() -> &'static DesignTokenSet;
    fn components() -> &'static [DesignComponentSpec];
    fn patterns() -> &'static [DesignPatternSpec];
    fn assets() -> &'static DesignAssetManifest;
    fn theme_ref(mode: DesignMode) -> &'static Theme;

    // Provided method
    fn theme(mode: DesignMode) -> Theme { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§