pub struct Palette {}Expand description
A source palette as 0xRRGGBB values. crate::Scheme::from_palette
derives the semantic roles from it; the stored colors are never painted
with an adjustment silently applied.
Fields§
§canvas: u32§surface: u32§inset: u32§text: u32§muted: u32§subtle: u32§border: u32§control: u32§accent: u32§on_accent: u32§success: u32§warning: u32§danger: u32§selection: u32Trait Implementations§
impl Copy for Palette
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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