pub struct TextStyle<'a> {
pub font_family: Option<&'a str>,
pub font_size: f32,
pub line_height: f32,
pub weight: u16,
pub italic: bool,
pub max_width: Option<f32>,
pub wrap: bool,
pub letter_spacing: f32,
}Expand description
Configuration for laying out a single text run.
Fields§
§font_family: Option<&'a str>§font_size: f32§line_height: f32§weight: u16§italic: bool§max_width: Option<f32>§wrap: bool§letter_spacing: f32Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TextStyle<'a>
impl<'a> RefUnwindSafe for TextStyle<'a>
impl<'a> Send for TextStyle<'a>
impl<'a> Sync for TextStyle<'a>
impl<'a> Unpin for TextStyle<'a>
impl<'a> UnsafeUnpin for TextStyle<'a>
impl<'a> UnwindSafe for TextStyle<'a>
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