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 moreimpl Copy for TextStyleToken
Source§impl Debug for TextStyleToken
impl Debug for TextStyleToken
Source§impl Decode for TextStyleToken
impl Decode for TextStyleToken
Source§impl Encode for TextStyleToken
impl Encode 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more