pub struct ColorPalette<'a> { /* private fields */ }Expand description
A single color palette.
Implementations§
Source§impl<'a> ColorPalette<'a>
impl<'a> ColorPalette<'a>
Sourcepub fn palette_type(&self) -> Option<PaletteType>
pub fn palette_type(&self) -> Option<PaletteType>
Returns this palette’s type flags (currently, whether this palette is appropriate for use on a light and/or dark background). This may not always be present.
Auto Trait Implementations§
impl<'a> Freeze for ColorPalette<'a>
impl<'a> RefUnwindSafe for ColorPalette<'a>
impl<'a> Send for ColorPalette<'a>
impl<'a> Sync for ColorPalette<'a>
impl<'a> Unpin for ColorPalette<'a>
impl<'a> UnwindSafe for ColorPalette<'a>
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