pub trait Decoratable: Sized {
// Required methods
fn background(self, color: Color) -> Self;
fn border(self, width: f32, color: Color) -> Self;
fn radius(self, radius: f32) -> Self;
fn box_style(self, style: BoxStyle) -> Self;
}Required Methods§
fn background(self, color: Color) -> Self
fn border(self, width: f32, color: Color) -> Self
fn radius(self, radius: f32) -> Self
fn box_style(self, style: BoxStyle) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".