pub struct Theme { /* private fields */ }Expand description
Named color palette keyed by Role. colors[role as usize] is
either Some(color) when the theme defines it or None so
Theme::color falls back via Role::fallback. Fields stay
crate-private so callers can’t mint themes with arbitrary names or
bypass the fallback contract; user-authored themes will go through
a validated constructor when TOML loading lands.
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