Skip to main content

BlockThemeRole

Trait BlockThemeRole 

Source
pub trait BlockThemeRole: Copy {
    // Required method
    fn resolve(self, theme: &Theme) -> BlockStyle;
}
Expand description

A typed role that resolves a BlockStyle from a Theme.

The geometry-bearing counterpart of TextThemeRole, for roles whose value is a rectangle rather than a run of text.

Required Methods§

Source

fn resolve(self, theme: &Theme) -> BlockStyle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§