pub enum Damage {
All,
Rects {
origin: (f64, f64),
rects: Vec<Rect>,
},
}Expand description
What an update did to a drawing’s tiles: every one, or those over the rects it touched.
Variants§
All
Every tile: a new scene, or the drawing’s top-left moved, which moves every tile.
Rects
The tiles over rects, in the design’s coordinates — each chunk the
update changed, where it was and where it is, and the strips the
drawing’s area gained or lost — of a drawing whose top-left is now
origin.
Trait Implementations§
impl StructuralPartialEq for Damage
Auto Trait Implementations§
impl Forget for Damage
impl Freeze for Damage
impl Move for Damage
impl RefUnwindSafe for Damage
impl Send for Damagewhere
RawVecInner: Send,
impl Sync for Damagewhere
RawVecInner: Sync,
impl Unpin for Damage
impl UnsafeUnpin for Damage
impl UnwindSafe for Damagewhere
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