fn cache_glyphs<L>(&mut self, section: &VariedSection, layout: &L) -> u64
    where
        L: GlyphPositioner,
    {
        let section_hash = xxhash(&(section, layout));

        if let Entry::Vacant(entry) = self.glyph_cache.entry(section_hash) {
            entry.insert(GlyphedSection {
                bounds: layout.bounds_rect(section),
                glyphs: layout.calculate_glyphs(self.fonts, section),
                z: section.z,
            });
        }

        section_hash
    }
/// Returns the calculate_glyph_cache key for this sections glyphs
Returns the calculate_glyph_cache key for this sections glyphs
Returns the calculate_glyph_cache key for this sections glyphs
fn cache_glyphs<L>(&mut self, section: &VariedSection, layout: &L) -> u64
    where
        L: GlyphPositioner,
    {
        let section_hash = xxhash(&(section, layout));
        if let Entry::Vacant(entry) = self.glyph_cache.entry(section_hash) {
            entry.insert(GlyphedSection {
                bounds: layout.bounds_rect(section),
                glyphs: layout.calculate_glyphs(self.fonts, section),
                z: section.z,
            });
        }
        section_hash
    }
fn cache_glyphs < L > ( & mut self , section : & VariedSection , layout : & L ) -> u64 where L : GlyphPositioner , { let section_hash = xxhash ( & ( section , layout ) ) ; if let Entry :: Vacant ( entry ) = self . glyph_cache . entry ( section_hash ) { entry . insert ( GlyphedSection { bounds : layout . bounds_rect ( section ) , glyphs : layout . calculate_glyphs ( self . fonts , section ) , z : section . z , } ) ; } section_hash }
Returns the calculate_glyph_cache key for this sections glyphs
Returns the calculate_glyph_cache key for this sections glyphs
&mut self
section
&VariedSection
layout
&L
&mut self
section
&VariedSection
layout
&L