#[non_exhaustive]pub struct ThemeFonts {
pub family: Option<String>,
pub size: Option<f32>,
pub mono_family: Option<String>,
pub mono_size: Option<f32>,
}Expand description
Font family and size settings for UI text.
All fields are optional, allowing partial theme definitions that can be merged with other themes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.family: Option<String>Primary UI font family name.
size: Option<f32>Primary UI font size in points.
mono_family: Option<String>Monospace font family name (for code, terminal, etc.).
mono_size: Option<f32>Monospace font size in points.
Implementations§
Source§impl ThemeFonts
impl ThemeFonts
Trait Implementations§
Source§impl Clone for ThemeFonts
impl Clone for ThemeFonts
Source§fn clone(&self) -> ThemeFonts
fn clone(&self) -> ThemeFonts
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeFonts
impl Debug for ThemeFonts
Source§impl Default for ThemeFonts
impl Default for ThemeFonts
Source§fn default() -> ThemeFonts
fn default() -> ThemeFonts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeFontswhere
ThemeFonts: Default,
impl<'de> Deserialize<'de> for ThemeFontswhere
ThemeFonts: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThemeFonts
impl PartialEq for ThemeFonts
Source§impl Serialize for ThemeFonts
impl Serialize for ThemeFonts
impl StructuralPartialEq for ThemeFonts
Auto Trait Implementations§
impl Freeze for ThemeFonts
impl RefUnwindSafe for ThemeFonts
impl Send for ThemeFonts
impl Sync for ThemeFonts
impl Unpin for ThemeFonts
impl UnsafeUnpin for ThemeFonts
impl UnwindSafe for ThemeFonts
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