pub struct TextStyle {
pub font_size: LayoutUnit,
pub color: Color,
pub underline: bool,
pub font_family: Option<String>,
pub locale: Option<String>,
pub font_weight: u16,
pub font_style: FontStyle,
pub line_height: Option<LayoutUnit>,
pub letter_spacing: LayoutUnit,
pub background_color: Option<Color>,
}Fields§
§font_size: LayoutUnit§color: Color§underline: bool§font_family: Option<String>§locale: Option<String>§font_weight: u16§font_style: FontStyle§line_height: Option<LayoutUnit>§letter_spacing: LayoutUnit§background_color: Option<Color>Optional background highlight color for this run (find matches, error squiggles, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextStyle
impl<'de> Deserialize<'de> for TextStyle
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
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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