pub struct Palette {
pub variant: Variant,
pub name: String,
pub description: String,
pub colors: Colors,
pub base: Base,
pub layers: Layers,
pub state: State,
pub semantic: Semantic,
pub ansi: Ansi,
pub ansi_bright: Ansi,
}Fields§
§variant: Variant§name: String§description: String§colors: Colors§base: Base§layers: Layers§state: State§semantic: Semantic§ansi: Ansi§ansi_bright: AnsiImplementations§
Source§impl Palette
impl Palette
Sourcepub fn night() -> Self
pub fn night() -> Self
Returns the embedded Night palette.
§Panics
Panics if the embedded palette is invalid (should never happen in normal use).
Sourcepub fn dawn() -> Self
pub fn dawn() -> Self
Returns the embedded Dawn palette.
§Panics
Panics if the embedded palette is invalid (should never happen in normal use).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin 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