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§
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.