pub struct TextStyle { /* private fields */ }
Implementations§
Source§impl TextStyle
impl TextStyle
pub fn new() -> Self
pub fn color<C: Into<Color>>(self, color: C) -> Self
pub fn font_style<S: Into<String>>(self, font_style: S) -> Self
pub fn font_weight<S: Into<String>>(self, font_weight: S) -> Self
pub fn font_family<S: Into<String>>(self, font_family: S) -> Self
pub fn font_size<F: Into<i64>>(self, font_size: F) -> Self
pub fn line_height<F: Into<i64>>(self, line_height: F) -> Self
pub fn align<S: Into<String>>(self, align: S) -> Self
pub fn padding<F: Into<i64> + Copy>(self, padding: [F; 4]) -> Self
pub fn padding_all<F: Into<i64> + Copy>(self, padding: F) -> Self
pub fn padding_pair<F: Into<i64> + Copy>(self, padding: [F; 2]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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> 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