pub struct ThemeElement {
pub id: ElementId,
pub name: ElementName,
pub owner: ElementOwner,
pub default: StyleSpec,
pub doc: &'static str,
}Expand description
A registered theme element: identity + metadata + the
owner-supplied default (itself a reference-form StyleSpec).
Fields§
§id: ElementId§name: ElementName§owner: ElementOwner§default: StyleSpec§doc: &'static strSelf-documenting help (:describe-element, design §8).
Trait Implementations§
Source§impl Clone for ThemeElement
impl Clone for ThemeElement
Source§fn clone(&self) -> ThemeElement
fn clone(&self) -> ThemeElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThemeElement
impl RefUnwindSafe for ThemeElement
impl Send for ThemeElement
impl Sync for ThemeElement
impl Unpin for ThemeElement
impl UnsafeUnpin for ThemeElement
impl UnwindSafe for ThemeElement
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