[][src]Struct fontdue::layout::GlyphRasterConfig

pub struct GlyphRasterConfig {
    pub c: char,
    pub px: f32,
    pub font_index: usize,
}

Configuration for rasterizing a glyph. This struct is also a hashable key that can be used to uniquely identify a rasterized glyph for applications that want to cache glyphs.

Fields

c: char

The character represented by the glyph being positioned.

px: f32

The scale of the glyph being positioned in px.

font_index: usize

The index of the font used in layout to raster the glyph.

Trait Implementations

impl Clone for GlyphRasterConfig[src]

impl Copy for GlyphRasterConfig[src]

impl Debug for GlyphRasterConfig[src]

impl Eq for GlyphRasterConfig[src]

impl Hash for GlyphRasterConfig[src]

impl PartialEq<GlyphRasterConfig> for GlyphRasterConfig[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.