pub trait FontWeightUtilities {
// Required method
fn font_weight(self, weight: FontWeight) -> Self;
}Expand description
Trait for adding font weight utilities to a class builder
Required Methods§
Sourcefn font_weight(self, weight: FontWeight) -> Self
fn font_weight(self, weight: FontWeight) -> Self
Set font weight
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.