Trait ForegroundRole

Source
pub trait ForegroundRole: ColorRole { }
Expand description

Marker trait for colors that can be used as foreground (text/icons).

Foreground colors are used for:

  • Body text
  • Icons
  • Labels
  • Any content that appears on top of a background

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