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§
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 Methods§
fn theme(mode: DesignMode) -> Theme
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".