pub struct NamedTheme {
pub name: &'static str,
pub palette: Palette,
pub overrides: Vec<(ElementName, StyleSpec)>,
}Expand description
A named theme: a palette + a (possibly empty) element-override set.
The unit a :colorscheme <name> swap resolves to.
Fields§
§name: &'static str§palette: Palette§overrides: Vec<(ElementName, StyleSpec)>Auto Trait Implementations§
impl Freeze for NamedTheme
impl RefUnwindSafe for NamedTheme
impl Send for NamedTheme
impl Sync for NamedTheme
impl Unpin for NamedTheme
impl UnsafeUnpin for NamedTheme
impl UnwindSafe for NamedTheme
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