[][src]Struct alacritty::renderer::GlyphCache

pub struct GlyphCache { /* fields omitted */ }

Naïve glyph cache

Currently only keyed by char, and thus not possible to hold different representations of the same code point.

Methods

impl GlyphCache[src]

pub fn new<L>(
    rasterizer: Rasterizer,
    font: &Font,
    loader: &mut L
) -> Result<GlyphCache, Error> where
    L: LoadGlyph
[src]

pub fn font_metrics(&self) -> Metrics[src]

pub fn get<'a, L>(
    &'a mut self,
    glyph_key: GlyphKey,
    loader: &mut L
) -> &'a Glyph where
    L: LoadGlyph
[src]

pub fn update_font_size<L: LoadGlyph>(
    &mut self,
    font: &Font,
    size: Size,
    dpr: f64,
    loader: &mut L
) -> Result<(), Error>
[src]

pub fn static_metrics(config: &Config, dpr: f32) -> Result<Metrics, Error>[src]

Auto Trait Implementations

impl Send for GlyphCache

impl !Sync for GlyphCache

Blanket Implementations

impl<T> From for T[src]

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

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.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]