pub enum Cached {
Added(usize),
Changed(usize),
Cleared(usize),
}Expand description
Successful method of caching of the queue, returned from cache_rects.
Variants§
Added(usize)
Added some rects into the cache without affecting any of the already cached rects from previous queues. Contains the number of rects that was added to the cache.
Changed(usize)
Added some rects into the cache, but removed some glyphs from previous queues. Contains the number of rects that was added to the cache.
Cleared(usize)
Added all rects into the cache, by clearing all rects from previous queues. Contains the number of rects contained in the cache.
Implementations§
Trait Implementations§
Source§impl Ord for Cached
impl Ord for Cached
Source§impl PartialOrd for Cached
impl PartialOrd for Cached
impl Copy for Cached
impl Eq for Cached
impl StructuralPartialEq for Cached
Auto Trait Implementations§
impl Freeze for Cached
impl RefUnwindSafe for Cached
impl Send for Cached
impl Sync for Cached
impl Unpin for Cached
impl UnwindSafe for Cached
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