pub trait StyleExt: Sized {
// Provided method
fn apply(self, f: impl FnOnce(Self) -> Self) -> Self { ... }
}Expand description
Apply an element transform — notably a style! block — to
any styled element: div().apply(style! { … }).
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".