pub trait TextStyle {
Show 14 methods
// Required methods
fn color(self, c: Color) -> View;
fn size(self, px: f32) -> View;
fn max_lines(self, n: usize) -> View;
fn single_line(self) -> View;
fn overflow_ellipsize(self) -> View;
fn overflow_clip(self) -> View;
fn overflow_visible(self) -> View;
fn font_family(self, family: &'static str) -> View;
fn text_align(self, align: TextAlign) -> View;
fn font_weight(self, weight: FontWeight) -> View;
fn font_style(self, style: FontStyle) -> View;
fn text_decoration(self, decoration: TextDecoration) -> View;
fn letter_spacing(self, spacing: f32) -> View;
fn line_height(self, height: f32) -> View;
}Expand description
Method styling
Required Methods§
fn color(self, c: Color) -> View
fn size(self, px: f32) -> View
fn max_lines(self, n: usize) -> View
fn single_line(self) -> View
fn overflow_ellipsize(self) -> View
fn overflow_clip(self) -> View
fn overflow_visible(self) -> View
fn font_family(self, family: &'static str) -> View
fn text_align(self, align: TextAlign) -> View
fn font_weight(self, weight: FontWeight) -> View
fn font_style(self, style: FontStyle) -> View
fn text_decoration(self, decoration: TextDecoration) -> View
fn letter_spacing(self, spacing: f32) -> View
fn line_height(self, height: f32) -> View
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".