Skip to main content

IntoTextStyle

Trait IntoTextStyle 

Source
pub trait IntoTextStyle<'a> {
    // Required method
    fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>;
}

Required Methods§

Source

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: SizeDesc> IntoTextStyle<'a> for (&'a str, T)

Source§

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>

Source§

impl<'a, T: SizeDesc> IntoTextStyle<'a> for (&'a str, T, FontStyle)

Source§

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>

Source§

impl<'a, T: SizeDesc> IntoTextStyle<'a> for (FontFamily<'a>, T)

Source§

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>

Source§

impl<'a, T: SizeDesc> IntoTextStyle<'a> for (FontFamily<'a>, T, FontStyle)

Source§

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>

Implementors§

Source§

impl<'a> IntoTextStyle<'a> for FontDesc<'a>

Source§

impl<'a> IntoTextStyle<'a> for FontFamily<'a>

Source§

impl<'a> IntoTextStyle<'a> for TextStyle<'a>