Struct glyph_brush::GlyphCalculatorGuard
source · pub struct GlyphCalculatorGuard<'brush, 'font: 'brush, H = DefaultSectionHasher> { /* private fields */ }
Expand description
GlyphCalculator
scoped cache lock.
Implementations
sourceimpl<H: BuildHasher> GlyphCalculatorGuard<'_, '_, H>
impl<H: BuildHasher> GlyphCalculatorGuard<'_, '_, H>
Trait Implementations
sourceimpl Debug for GlyphCalculatorGuard<'_, '_>
impl Debug for GlyphCalculatorGuard<'_, '_>
sourceimpl<H> Drop for GlyphCalculatorGuard<'_, '_, H>
impl<H> Drop for GlyphCalculatorGuard<'_, '_, H>
sourceimpl<'font, H: BuildHasher> GlyphCruncher<'font> for GlyphCalculatorGuard<'_, 'font, H>
impl<'font, H: BuildHasher> GlyphCruncher<'font> for GlyphCalculatorGuard<'_, 'font, H>
sourcefn pixel_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect<i32>>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, VariedSection<'a>>>,
fn pixel_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect<i32>>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, VariedSection<'a>>>,
Returns the pixel bounding box for the input section using a custom layout.
The box is a conservative whole number pixel rectangle that can contain the section. Read more
sourcefn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> PositionedGlyphIter<'b, 'font>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, VariedSection<'a>>>,
fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> PositionedGlyphIter<'b, 'font>where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, VariedSection<'a>>>,
Returns an iterator over the
PositionedGlyph
s of the given section with a custom layout. Read moresourcefn pixel_bounds<'a, S>(&mut self, section: S) -> Option<Rect<i32>>where
S: Into<Cow<'a, VariedSection<'a>>>,
fn pixel_bounds<'a, S>(&mut self, section: S) -> Option<Rect<i32>>where
S: Into<Cow<'a, VariedSection<'a>>>,
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
sourcefn glyphs<'a, 'b, S>(&'b mut self, section: S) -> PositionedGlyphIter<'b, 'font>where
S: Into<Cow<'a, VariedSection<'a>>>,
fn glyphs<'a, 'b, S>(&'b mut self, section: S) -> PositionedGlyphIter<'b, 'font>where
S: Into<Cow<'a, VariedSection<'a>>>,
Returns an iterator over the
PositionedGlyph
s of the given section. Read moreAuto Trait Implementations
impl<'brush, 'font, H> RefUnwindSafe for GlyphCalculatorGuard<'brush, 'font, H>where
H: RefUnwindSafe,
impl<'brush, 'font, H = BuildHasherDefault<SeaHasher>> !Send for GlyphCalculatorGuard<'brush, 'font, H>
impl<'brush, 'font, H> Sync for GlyphCalculatorGuard<'brush, 'font, H>where
H: Sync,
impl<'brush, 'font, H> Unpin for GlyphCalculatorGuard<'brush, 'font, H>where
H: Unpin,
'font: 'brush,
impl<'brush, 'font, H> UnwindSafe for GlyphCalculatorGuard<'brush, 'font, H>where
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more