Trait plotters::style::IntoTextStyle [−][src]
pub trait IntoTextStyle<'a> { fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>; 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>
[src]
fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
[src]Provided methods
fn with_color<C: Color>(self, color: C) -> TextStyleBuilder<'a, Self> where
Self: Sized,
[src]
fn with_color<C: Color>(self, color: C) -> TextStyleBuilder<'a, Self> where
Self: Sized,
[src]fn with_anchor<C: Color>(self, pos: Pos) -> TextStyleBuilder<'a, Self> where
Self: Sized,
[src]
fn with_anchor<C: Color>(self, pos: Pos) -> TextStyleBuilder<'a, Self> where
Self: Sized,
[src]Implementations on Foreign Types
impl<'a> IntoTextStyle<'a> for &'a str
[src]
impl<'a> IntoTextStyle<'a> for &'a str
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'a>
[src]
impl IntoTextStyle<'static> for u32
[src]
impl IntoTextStyle<'static> for u32
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'static>
[src]
impl IntoTextStyle<'static> for f64
[src]
impl IntoTextStyle<'static> for f64
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'static>
[src]
impl<'a, T: Color> IntoTextStyle<'a> for &'a T
[src]
impl<'a, T: Color> IntoTextStyle<'a> for &'a T
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'a>
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc> IntoTextStyle<'a> for (F, T)
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc> IntoTextStyle<'a> for (F, T)
[src]fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc, C: Color> IntoTextStyle<'a> for (F, T, &'a C)
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc, C: Color> IntoTextStyle<'a> for (F, T, &'a C)
[src]fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc> IntoTextStyle<'a> for (F, T, FontStyle)
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc> IntoTextStyle<'a> for (F, T, FontStyle)
[src]fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc, C: Color> IntoTextStyle<'a> for (F, T, FontStyle, &'a C)
[src]
impl<'a, F: Into<FontFamily<'a>>, T: SizeDesc, C: Color> IntoTextStyle<'a> for (F, T, FontStyle, &'a C)
[src]fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>
[src]
Implementors
impl<'a> IntoTextStyle<'a> for FontFamily<'a>
[src]
impl<'a> IntoTextStyle<'a> for FontFamily<'a>
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'a>
[src]
impl<'a> IntoTextStyle<'a> for FontDesc<'a>
[src]
impl<'a> IntoTextStyle<'a> for FontDesc<'a>
[src]fn into_text_style<P: HasDimension>(self, _: &P) -> TextStyle<'a>
[src]
impl<'a> IntoTextStyle<'a> for TextStyle<'a>
[src]
impl<'a> IntoTextStyle<'a> for TextStyle<'a>
[src]