pub struct PaintCache { /* private fields */ }Expand description
The paint cache, retained in the crate::Runtime from one frame to the next.
Implementations§
Source§impl PaintCache
impl PaintCache
Sourcepub fn bump_generation(&mut self)
pub fn bump_generation(&mut self)
Invalidates the whole cache logically: the view has been rebuilt, so
the widgets’ configuration may have changed. Entries from the old
generation will never be hits again.
Sourcepub fn last_frame_stats(&self) -> (u32, u32)
pub fn last_frame_stats(&self) -> (u32, u32)
Reuses and repaints of the last completed frame (diagnostic).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PaintCache
impl !Send for PaintCache
impl !Sync for PaintCache
impl !UnwindSafe for PaintCache
impl Freeze for PaintCache
impl Unpin for PaintCache
impl UnsafeUnpin for PaintCache
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