pub trait Typeset: Styled + Sized {
// Provided methods
fn text_style(self, style: TextStyle) -> Self { ... }
fn text_style_at(self, style: TextStyle, zoom: f32) -> Self { ... }
}Expand description
The ladder, on anything styled.
Provided Methods§
Sourcefn text_style(self, style: TextStyle) -> Self
fn text_style(self, style: TextStyle) -> Self
Size and weight together, from TextStyle.
Sourcefn text_style_at(self, style: TextStyle, zoom: f32) -> Self
fn text_style_at(self, style: TextStyle, zoom: f32) -> Self
Self::text_style at zoom: size, leading and weight together.
Scaling the size alone keeps the full leading, and the text spills out
of a box scaled with it.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".