Skip to main content

Decoratable

Trait Decoratable 

Source
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§

Source

fn background(self, color: Color) -> Self

Source

fn border(self, width: f32, color: Color) -> Self

Source

fn radius(self, radius: f32) -> Self

Source

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".

Implementors§