pub trait TextTypographySurface: HasTextNode {
// Provided methods
fn font_stack(&self, stack: FontStack, size: f32) -> &Self { ... }
fn font_family(&self, family: FontFamily) -> &Self { ... }
fn font_weight(&self, weight: FontWeight) -> &Self { ... }
fn font_style(&self, style: FontStyle) -> &Self { ... }
fn font_size(&self, size: f32) -> &Self { ... }
fn line_height(&self, line_height: f32) -> &Self { ... }
fn text_color(&self, color: u32) -> &Self { ... }
}Provided Methods§
fn font_stack(&self, stack: FontStack, size: f32) -> &Self
fn font_family(&self, family: FontFamily) -> &Self
fn font_weight(&self, weight: FontWeight) -> &Self
fn font_style(&self, style: FontStyle) -> &Self
fn font_size(&self, size: f32) -> &Self
fn line_height(&self, line_height: f32) -> &Self
fn text_color(&self, color: u32) -> &Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".