pub struct TextStyle {
pub font_family: Option<String>,
pub font_size: Option<f32>,
pub font_weight: Option<FontWeight>,
pub font_style: Option<FontStyle>,
pub letter_spacing: Option<f32>,
pub line_height: Option<f32>,
}Expand description
Text style (data only, no rendering)
Fields§
§font_family: Option<String>§font_size: Option<f32>§font_weight: Option<FontWeight>§font_style: Option<FontStyle>§letter_spacing: Option<f32>§line_height: Option<f32>Trait Implementations§
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 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