struct OutlineCache {
free_list: Vec<OutlinePath>,
static_map: HashMap<OutlineKey, OutlineEntry>,
variable_map: HashMap<Vec<NormalizedCoord>, HashMap<OutlineKey, OutlineEntry>>,
cached_count: usize,
serial: u32,
last_prune_serial: u32,
}Expand description
Caches glyph outlines for reuse.
Heavily inspired by vello_encoding::glyph_cache.
Fields§
§free_list: Vec<OutlinePath>§static_map: HashMap<OutlineKey, OutlineEntry>§variable_map: HashMap<Vec<NormalizedCoord>, HashMap<OutlineKey, OutlineEntry>>§cached_count: usize§serial: u32§last_prune_serial: u32Implementations§
Trait Implementations§
Source§impl Debug for OutlineCache
impl Debug for OutlineCache
Source§impl Default for OutlineCache
impl Default for OutlineCache
Source§fn default() -> OutlineCache
fn default() -> OutlineCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutlineCache
impl RefUnwindSafe for OutlineCache
impl Send for OutlineCache
impl Sync for OutlineCache
impl Unpin for OutlineCache
impl UnwindSafe for OutlineCache
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