pub struct Theme {
pub styles: HashMap<String, Style>,
pub inherit: Option<Box<Theme>>,
}Expand description
A set of named styles that can be applied to themed output.
Fields§
§styles: HashMap<String, Style>Mapping from style name → Style.
inherit: Option<Box<Theme>>Optional inherited base theme.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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