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
sourceimpl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
impl<F: Font, X, H: BuildHasher> Debug for GlyphCalculatorGuard<'_, F, X, H>
sourceimpl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
impl<F, X, H> Drop for GlyphCalculatorGuard<'_, F, X, H>
sourceimpl<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>
sourcefn 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 more
sourcefn 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
sourcefn fonts(&self) -> &[F]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn fonts(&self) -> &[F]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Returns the available fonts. 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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