Trait ColorRole

Source
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

Required Methods§

Source

fn role_name() -> &'static str

Returns the name of this role for debugging and serialization.

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§