pub struct ComputedTextStyle {
pub family_stack: Vec<String>,
pub weight: u16,
pub italic: bool,
pub size_px: f32,
pub line_height: f32,
pub letter_spacing: f32,
pub block_role: BlockRole,
}Expand description
Cascaded and normalized text style for rendering.
Fields§
§family_stack: Vec<String>Ordered family preference stack.
weight: u16Numeric weight.
italic: boolItalic toggle.
size_px: f32Effective font size in pixels.
line_height: f32Effective line-height multiplier.
letter_spacing: f32Effective letter spacing in pixels.
block_role: BlockRoleSemantic block role.
Trait Implementations§
Source§impl Clone for ComputedTextStyle
impl Clone for ComputedTextStyle
Source§fn clone(&self) -> ComputedTextStyle
fn clone(&self) -> ComputedTextStyle
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 ComputedTextStyle
impl Debug for ComputedTextStyle
Source§impl PartialEq for ComputedTextStyle
impl PartialEq for ComputedTextStyle
impl StructuralPartialEq for ComputedTextStyle
Auto Trait Implementations§
impl Freeze for ComputedTextStyle
impl RefUnwindSafe for ComputedTextStyle
impl Send for ComputedTextStyle
impl Sync for ComputedTextStyle
impl Unpin for ComputedTextStyle
impl UnsafeUnpin for ComputedTextStyle
impl UnwindSafe for ComputedTextStyle
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