Struct glyph_brush::GlyphCalculatorGuard
source · pub struct GlyphCalculatorGuard<'brush, F: 'brush = FontArc, X = Extra, H = DefaultSectionHasher> { /* private fields */ }
Expand description
GlyphCalculator
scoped cache lock.
Trait Implementations§
source§impl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
impl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
source§impl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
impl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
source§impl<F: Font, X: Clone + Hash, H: BuildHasher> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H>
impl<F: Font, X: Clone + Hash, H: BuildHasher> GlyphCruncher<F, X> for GlyphCalculatorGuard<'_, F, X, H>
source§fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b>where
X: 'a,
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a, X>>>,
fn glyphs_custom_layout<'a, 'b, S, L>( &'b mut self, section: S, custom_layout: &L ) -> SectionGlyphIter<'b>where X: 'a, L: GlyphPositioner + Hash, S: Into<Cow<'a, Section<'a, X>>>,
Returns an iterator over the
PositionedGlyph
s of the given section with a custom layout. Read moresource§fn glyph_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect>where
X: 'a,
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a, X>>>,
fn glyph_bounds_custom_layout<'a, S, L>( &mut self, section: S, custom_layout: &L ) -> Option<Rect>where X: 'a, L: GlyphPositioner + Hash, S: Into<Cow<'a, Section<'a, X>>>,
Returns a bounding box for the section glyphs calculated using each glyph’s
vertical & horizontal metrics. Read more
Auto Trait Implementations§
impl<'brush, F, X, H> RefUnwindSafe for GlyphCalculatorGuard<'brush, F, X, H>where F: RefUnwindSafe, H: RefUnwindSafe,
impl<'brush, F = FontArc, X = Extra, H = RandomXxHashBuilder64> !Send for GlyphCalculatorGuard<'brush, F, X, H>
impl<'brush, F, X, H> Sync for GlyphCalculatorGuard<'brush, F, X, H>where F: Sync, H: Sync, X: Sync,
impl<'brush, F, X, H> Unpin for GlyphCalculatorGuard<'brush, F, X, H>where H: Unpin,
impl<'brush, F, X, H> UnwindSafe for GlyphCalculatorGuard<'brush, F, X, H>where F: RefUnwindSafe, H: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more