Trait TextModifiers

Source
pub trait TextModifiers: View + Sized {
    // Required methods
    fn font_size(self, size: u32) -> Text;
    fn color(self, color: Color) -> Text;
}

Required Methods§

Source

fn font_size(self, size: u32) -> Text

Source

fn color(self, color: Color) -> Text

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TextModifiers for Text

Source§

impl<V> TextModifiers for V
where V: Display + Debug + 'static,