pub trait BackgroundStyleArg {
// Required method
fn background_style(self, view: View) -> View;
}Expand description
Anything backgroundStyle accepts — the same some ShapeStyle as
ShapeStyleArg, reaching a different modifier.
Separate from ShapeStyleArg rather than a second method on it because the
two modifiers do not accept the same set: a gradient is a ShapeStyle that
foregroundStyle takes and this one has no binding for yet. One trait per
modifier keeps that honest instead of a method that panics.
Required Methods§
Sourcefn background_style(self, view: View) -> View
fn background_style(self, view: View) -> View
Apply this style as view’s background style.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".