pub trait StyleExtwhere
Self: Sized,{
// Required method
fn get_style(&mut self) -> &mut StyleState;
// Provided methods
fn background<S: Into<Color>>(self, background: S) -> Self { ... }
fn background_conic_gradient<S: Into<ConicGradient>>(
self,
background: S,
) -> Self { ... }
fn background_linear_gradient<S: Into<LinearGradient>>(
self,
background: S,
) -> Self { ... }
fn background_radial_gradient<S: Into<RadialGradient>>(
self,
background: S,
) -> Self { ... }
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: Into<Color>>(self, background: S) -> Self
fn background_conic_gradient<S: Into<ConicGradient>>( self, background: S, ) -> Self
fn background_linear_gradient<S: Into<LinearGradient>>( self, background: S, ) -> Self
fn background_radial_gradient<S: Into<RadialGradient>>( self, background: S, ) -> Self
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.