pub trait IntoTextStyle<'a> {
// Required method
fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>;
// Provided methods
fn with_color<C: Color>(self, color: C) -> TextStyleBuilder<'a, Self>
where Self: Sized { ... }
fn with_anchor<C: Color>(self, pos: Pos) -> TextStyleBuilder<'a, Self>
where Self: Sized { ... }
}
Required Methods§
fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
Provided Methods§
fn with_color<C: Color>(self, color: C) -> TextStyleBuilder<'a, Self>where
Self: Sized,
fn with_anchor<C: Color>(self, pos: Pos) -> TextStyleBuilder<'a, Self>where
Self: Sized,
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.