pub enum AtlasCacher<'a> {
Disabled,
Enabled(&'a mut GlyphAtlas, &'a mut ImageCache),
}Expand description
Determines whether atlas-backed glyph caching is available for a draw.
Variants§
Disabled
Draw directly without using the atlas cache.
Enabled(&'a mut GlyphAtlas, &'a mut ImageCache)
Enable atlas-backed caching using the provided glyph atlas and image allocator.
Implementations§
Source§impl AtlasCacher<'_>
impl AtlasCacher<'_>
fn config(&self) -> Option<&GlyphCacheConfig>
fn get(&mut self, key: &GlyphCacheKey) -> Option<AtlasSlot>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AtlasCacher<'a>
impl<'a> RefUnwindSafe for AtlasCacher<'a>
impl<'a> Send for AtlasCacher<'a>
impl<'a> Sync for AtlasCacher<'a>
impl<'a> Unpin for AtlasCacher<'a>
impl<'a> UnsafeUnpin for AtlasCacher<'a>
impl<'a> !UnwindSafe for AtlasCacher<'a>
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