pub struct TextStyleToken {
pub size: f32,
pub line_height: f32,
pub letter_spacing: f32,
pub weight: u16,
}Expand description
A resolved text style for one typographic role.
Fields§
§size: f32Font size in logical pixels.
line_height: f32Line height in logical pixels (total line box height).
letter_spacing: f32Letter spacing in logical pixels (may be negative for tight display text).
weight: u16Font weight (100 thin … 900 black; 400 regular).
Implementations§
Trait Implementations§
Source§impl Clone for TextStyleToken
impl Clone for TextStyleToken
Source§fn clone(&self) -> TextStyleToken
fn clone(&self) -> TextStyleToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextStyleToken
impl Debug for TextStyleToken
Source§impl PartialEq for TextStyleToken
impl PartialEq for TextStyleToken
Source§fn eq(&self, other: &TextStyleToken) -> bool
fn eq(&self, other: &TextStyleToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextStyleToken
impl StructuralPartialEq for TextStyleToken
Auto Trait Implementations§
impl Freeze for TextStyleToken
impl RefUnwindSafe for TextStyleToken
impl Send for TextStyleToken
impl Sync for TextStyleToken
impl Unpin for TextStyleToken
impl UnsafeUnpin for TextStyleToken
impl UnwindSafe for TextStyleToken
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