pub struct Palette {
pub background: Background,
pub primary: Swatch,
pub secondary: Swatch,
pub success: Swatch,
pub warning: Swatch,
pub danger: Swatch,
pub is_dark: bool,
}Expand description
An extended set of colors generated from a Seed.
Fields§
§background: BackgroundThe set of background colors.
primary: SwatchThe set of primary colors.
secondary: SwatchThe set of secondary colors.
success: SwatchThe set of success colors.
warning: SwatchThe set of warning colors.
danger: SwatchThe set of danger colors.
is_dark: boolWhether the palette is dark or not.
Implementations§
Trait Implementations§
impl Copy 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