pub struct DamageRegion {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
A rectangular damage region in pixel coordinates
Fields§
§x: i32§y: i32§width: i32§height: i32Implementations§
Source§impl DamageRegion
impl DamageRegion
Trait Implementations§
Source§impl Clone for DamageRegion
impl Clone for DamageRegion
Source§fn clone(&self) -> DamageRegion
fn clone(&self) -> DamageRegion
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DamageRegion
impl Debug for DamageRegion
Source§impl Default for DamageRegion
impl Default for DamageRegion
Source§fn default() -> DamageRegion
fn default() -> DamageRegion
Returns the “default value” for a type. Read more
Source§impl PartialEq for DamageRegion
impl PartialEq for DamageRegion
impl Copy for DamageRegion
impl Eq for DamageRegion
impl StructuralPartialEq for DamageRegion
Auto Trait Implementations§
impl Freeze for DamageRegion
impl RefUnwindSafe for DamageRegion
impl Send for DamageRegion
impl Sync for DamageRegion
impl Unpin for DamageRegion
impl UnwindSafe for DamageRegion
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)