[][src]Struct glyph_brush::GlyphCalculatorGuard

pub struct GlyphCalculatorGuard<'brush, 'font: 'brush, H = DefaultSectionHasher> { /* fields omitted */ }

GlyphCalculator scoped cache lock.

Trait Implementations

impl<'font, H: BuildHasher, '_> GlyphCruncher<'font> for GlyphCalculatorGuard<'_, 'font, H>[src]

fn pixel_bounds<'a, S>(&mut self, section: S) -> Option<Rect<i32>> where
    S: Into<Cow<'a, VariedSection<'a>>>, 
[src]

Returns the pixel bounding box for the input section. The box is a conservative whole number pixel rectangle that can contain the section. Read more

fn glyphs<'a, 'b, S>(&'b mut self, section: S) -> PositionedGlyphIter<'b, 'font> where
    S: Into<Cow<'a, VariedSection<'a>>>, 
[src]

Returns an iterator over the PositionedGlyphs of the given section. Read more

fn glyph_bounds_custom_layout<'a, S, L>(
    &mut self,
    section: S,
    custom_layout: &L
) -> Option<Rect<f32>> where
    L: GlyphPositioner + Hash,
    S: Into<Cow<'a, VariedSection<'a>>>, 
[src]

Returns a bounding box for the section glyphs calculated using each glyph's vertical & horizontal metrics. Read more

fn glyph_bounds<'a, S>(&mut self, section: S) -> Option<Rect<f32>> where
    S: Into<Cow<'a, VariedSection<'a>>>, 
[src]

Returns a bounding box for the section glyphs calculated using each glyph's vertical & horizontal metrics. Read more

impl<H, '_, '_> Drop for GlyphCalculatorGuard<'_, '_, H>[src]

impl<'_, '_> Debug for GlyphCalculatorGuard<'_, '_>[src]

Auto Trait Implementations

impl<'brush, 'font, H = RandomXxHashBuilder> !Send for GlyphCalculatorGuard<'brush, 'font, H>

impl<'brush, 'font, H> Sync for GlyphCalculatorGuard<'brush, 'font, H> where
    H: Sync

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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