pub trait StyleExt: Sized {
// Required method
fn get_style(&mut self) -> &mut StyleState;
// Provided methods
fn background<S>(self, background: S) -> Self
where S: Into<Color> { ... }
fn background_conic_gradient<S>(self, background: S) -> Self
where S: Into<ConicGradient> { ... }
fn background_linear_gradient<S>(self, background: S) -> Self
where S: Into<LinearGradient> { ... }
fn background_radial_gradient<S>(self, background: S) -> Self
where S: Into<RadialGradient> { ... }
fn border(self, border: impl Into<Option<Border>>) -> Self { ... }
fn shadow(self, shadow: impl Into<Shadow>) -> Self { ... }
fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self { ... }
}Required Methods§
fn get_style(&mut self) -> &mut StyleState
Provided Methods§
fn background<S>(self, background: S) -> Self
fn background_conic_gradient<S>(self, background: S) -> Selfwhere
S: Into<ConicGradient>,
fn background_linear_gradient<S>(self, background: S) -> Selfwhere
S: Into<LinearGradient>,
fn background_radial_gradient<S>(self, background: S) -> Selfwhere
S: Into<RadialGradient>,
fn border(self, border: impl Into<Option<Border>>) -> Self
fn shadow(self, shadow: impl Into<Shadow>) -> Self
fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self
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.