Skip to main content

Typeset

Trait Typeset 

Source
pub trait Typeset: Styled + Sized {
    // Provided method
    fn text_style(self, style: TextStyle) -> Self { ... }
}
Expand description

The ladder, on anything styled.

Provided Methods§

Source

fn text_style(self, style: TextStyle) -> Self

Size and weight together, from TextStyle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E: Styled> Typeset for E