pub struct Theme {
pub body: TextStyle,
pub muted: TextStyle,
pub h1: TextStyle,
pub h2: TextStyle,
pub h3: TextStyle,
pub link: TextStyle,
pub inline_code: TextStyle,
pub quote: TextStyle,
pub border: TextStyle,
pub alerts: AlertTheme,
pub syntax_theme: String,
}Expand description
Theme(§61)。
Fields§
§body: TextStyle§muted: TextStyle§h1: TextStyle§h2: TextStyle§h3: TextStyle§link: TextStyle§inline_code: TextStyle§quote: TextStyle§border: TextStyle§alerts: AlertTheme§syntax_theme: StringImplementations§
Trait Implementations§
impl Eq for Theme
impl StructuralPartialEq for Theme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.