[][src]Struct fontdue::layout::TextStyle

pub struct TextStyle<'a> {
    pub text: &'a str,
    pub px: f32,
    pub font_index: usize,
}

A style description for a segment of text.

Fields

text: &'a str

The text to layout.

px: f32

The scale of the text in pixel units.

font_index: usize

The font to layout the text in.

Implementations

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

pub fn new(text: &'a str, px: f32, font_index: usize) -> TextStyle<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for TextStyle<'a>

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

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

impl<'a> Unpin for TextStyle<'a>

impl<'a> UnwindSafe for TextStyle<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.