[][src]Struct plotters::style::TextStyle

pub struct TextStyle<'a> {
    pub font: FontDesc<'a>,
    pub color: RGBAColor,
}

Style of a text

Fields

font: FontDesc<'a>color: RGBAColor

Methods

impl<'a> TextStyle<'a>[src]

pub fn color<C: Color>(&self, color: &'a C) -> Self[src]

Determine the color of the style

pub fn transform(&self, trans: FontTransform) -> Self[src]

Trait Implementations

impl<'a, T: Into<FontDesc<'a>>> From<T> for TextStyle<'a>[src]

impl<'a, 'b: 'a> Into<TextStyle<'a>> for &'b TextStyle<'a>[src]

Make sure that we are able to automatically copy the TextStyle

impl<'a> Clone for TextStyle<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for TextStyle<'a>

impl<'a> Sync for TextStyle<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.