pub struct Work {
pub draw: Vec<(Ticket, Rect)>,
pub request: Vec<(Ticket, Key)>,
pub evict: Vec<Ticket>,
pub missing: usize,
}Expand description
A frame’s work: the paintings to draw, bottom first, each where it lands in the view, in device pixels; the tiles to paint next, each under its ticket; the paintings to free; and how many tiles of the view at its own level are missing or stale — 0 when the frame shows the view current.
Fields§
§draw: Vec<(Ticket, Rect)>The paintings to draw, bottom first, each where it lands in the view, in device pixels.
request: Vec<(Ticket, Key)>The tiles to paint next, each under its ticket.
evict: Vec<Ticket>The paintings to free: let go since the last frame, their tickets never given again.
missing: usizeHow many tiles of the view at its own level are missing or stale: 0 when the frame shows the view current.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Work
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Work
impl UnwindSafe for Work
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