pub trait Palette {
const COLORS: &'static [(u8, u8, u8)];
// Provided method
fn pick(idx: usize) -> PaletteColor<Self>
where Self: Sized { ... }
}
Expand description
Definitions of palettes of accessibility
Required Associated Constants§
Provided Methods§
fn pick(idx: usize) -> PaletteColor<Self>where
Self: Sized,
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.