pub struct PaletteEntry {
pub role: ColorRole,
pub scheme: ColorScheme,
pub color: Color,
}Expand description
One role’s colour in one scheme, as it travels.
Fields§
§role: ColorRole§scheme: ColorSchemeLight or Dark. Never FollowSystem, which is a way of choosing, not a scheme.
color: ColorTrait Implementations§
Source§impl Clone for PaletteEntry
impl Clone for PaletteEntry
impl Copy for PaletteEntry
Source§impl Debug for PaletteEntry
impl Debug for PaletteEntry
impl Eq for PaletteEntry
Source§impl PartialEq for PaletteEntry
impl PartialEq for PaletteEntry
impl StructuralPartialEq for PaletteEntry
Auto Trait Implementations§
impl Freeze for PaletteEntry
impl RefUnwindSafe for PaletteEntry
impl Send for PaletteEntry
impl Sync for PaletteEntry
impl Unpin for PaletteEntry
impl UnsafeUnpin for PaletteEntry
impl UnwindSafe for PaletteEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more