Trait BackgroundRole

Source
pub trait BackgroundRole: ColorRole { }
Expand description

Marker trait for colors that can be used as backgrounds.

Background colors are used for:

  • Panel and window backgrounds
  • Button fills
  • Card surfaces
  • Input field backgrounds

§Implementors

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.

Implementors§