pub struct CssStyle {
pub font_size: Option<FontSize>,
pub font_family: Option<String>,
pub font_weight: Option<FontWeight>,
pub font_style: Option<FontStyle>,
pub text_align: Option<TextAlign>,
pub line_height: Option<LineHeight>,
pub letter_spacing: Option<f32>,
pub margin_top: Option<f32>,
pub margin_bottom: Option<f32>,
}Expand description
A set of CSS property values
All fields are optional — None means “not specified” (inherit from parent
or use default).
Fields§
§font_size: Option<FontSize>Font size
font_family: Option<String>Font family name
font_weight: Option<FontWeight>Font weight (normal or bold)
font_style: Option<FontStyle>Font style (normal or italic)
text_align: Option<TextAlign>Text alignment
line_height: Option<LineHeight>Line height
letter_spacing: Option<f32>Letter spacing in pixels
margin_top: Option<f32>Top margin in pixels
margin_bottom: Option<f32>Bottom margin in pixels
Implementations§
Trait Implementations§
impl StructuralPartialEq for CssStyle
Auto Trait Implementations§
impl Freeze for CssStyle
impl RefUnwindSafe for CssStyle
impl Send for CssStyle
impl Sync for CssStyle
impl Unpin for CssStyle
impl UnsafeUnpin for CssStyle
impl UnwindSafe for CssStyle
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