pub trait ColorRole:
Sealed
+ Debug
+ Clone
+ Copy
+ 'static {
// Required method
fn role_name() -> &'static str;
}Expand description
Marker trait for all color roles.
This is the base trait that all specific role traits extend. It is sealed, meaning only types defined in this crate can implement it.
§Implementors
Background,Surface,SurfaceHover— Background rolesForeground,ForegroundDim— Foreground (text) rolesAccent— Accent color roleError,Warning,Success,Info— Status roles
Required Methods§
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.