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 Freeze for Damage
impl RefUnwindSafe for Damage
impl Send for Damage
impl Sync for Damage
impl Unpin for Damage
impl UnsafeUnpin for Damage
impl UnwindSafe for Damage
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