#[non_exhaustive]pub struct DamageSlot {
pub armed: bool,
pub x: i32,
pub y: i32,
pub w: u32,
pub h: u32,
pub generation: u64,
}Expand description
One decoration’s footprint on the canvas, as of some frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.armed: boolWhether anything is drawn here at all.
x: i32Left edge.
y: i32Top edge.
w: u32Width.
h: u32Height.
generation: u64The surface’s content generation.
What separates moved from redrawn: a decoration at the same place whose pixels changed has the same rectangle and a different generation, and without this it would look unchanged.
Trait Implementations§
Source§impl Clone for DamageSlot
impl Clone for DamageSlot
impl Copy for DamageSlot
Source§impl Debug for DamageSlot
impl Debug for DamageSlot
Source§impl Default for DamageSlot
impl Default for DamageSlot
impl Eq for DamageSlot
Source§impl PartialEq for DamageSlot
impl PartialEq for DamageSlot
impl StructuralPartialEq for DamageSlot
Auto Trait Implementations§
impl Freeze for DamageSlot
impl RefUnwindSafe for DamageSlot
impl Send for DamageSlot
impl Sync for DamageSlot
impl Unpin for DamageSlot
impl UnsafeUnpin for DamageSlot
impl UnwindSafe for DamageSlot
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