pub trait BackgroundExt: StyleExt {
// Provided method
fn background(self, background: impl Into<Fill>) -> Self { ... }
}Expand description
Methods for painting an element’s background.
Provided Methods§
Sourcefn background(self, background: impl Into<Fill>) -> Self
fn background(self, background: impl Into<Fill>) -> Self
Paint the background with a color, gradient or shader. See Fill.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".