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 Workwhere
*const u8 is !null: Freeze,
PhantomData<(u32, Rect)>: Freeze,
PhantomData<(u32, Key)>: Freeze,
PhantomData<u32>: Freeze,
impl Move for Work
impl RefUnwindSafe for Work
impl Send for Workwhere
RawVecInner: Send,
impl Sync for Workwhere
RawVecInner: Sync,
impl Unpin for Work
impl UnsafeUnpin for Workwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(u32, Rect)>: UnsafeUnpin,
PhantomData<(u32, Key)>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
impl UnwindSafe for Workwhere
RawVecInner: UnwindSafe,
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