pub struct EvictedGlyph {
pub alloc_id: AllocId,
pub atlas_x: u32,
pub atlas_y: u32,
pub width: u32,
pub height: u32,
}Expand description
A glyph removed by GlyphCache::evict_unused: the allocator id to
deallocate plus the atlas rectangle the glyph occupied. Consumers that
retain glyph quads across frames (paint caches) key their invalidation
off the eviction; the rect lets debug builds poison-fill freed pixels
so stale-UV sampling is visually unmistakable.
Fields§
§alloc_id: AllocId§atlas_x: u32§atlas_y: u32§width: u32§height: u32Trait Implementations§
Source§impl Clone for EvictedGlyph
impl Clone for EvictedGlyph
Source§fn clone(&self) -> EvictedGlyph
fn clone(&self) -> EvictedGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EvictedGlyph
Auto Trait Implementations§
impl Freeze for EvictedGlyph
impl RefUnwindSafe for EvictedGlyph
impl Send for EvictedGlyph
impl Sync for EvictedGlyph
impl Unpin for EvictedGlyph
impl UnsafeUnpin for EvictedGlyph
impl UnwindSafe for EvictedGlyph
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