pub struct DirtyRegion {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
Represents a rectangular dirty region within a frame.
Fieldsยง
ยงx: i32The left coordinate (in pixels) of the region.
y: i32The top coordinate (in pixels) of the region.
width: i32The width (in pixels) of the region.
height: i32The height (in pixels) of the region.
Trait Implementationsยง
Sourceยงimpl Clone for DirtyRegion
impl Clone for DirtyRegion
Sourceยงfn clone(&self) -> DirtyRegion
fn clone(&self) -> DirtyRegion
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for DirtyRegion
impl Debug for DirtyRegion
Sourceยงimpl PartialEq for DirtyRegion
impl PartialEq for DirtyRegion
impl Copy for DirtyRegion
impl Eq for DirtyRegion
impl StructuralPartialEq for DirtyRegion
Auto Trait Implementationsยง
impl Freeze for DirtyRegion
impl RefUnwindSafe for DirtyRegion
impl Send for DirtyRegion
impl Sync for DirtyRegion
impl Unpin for DirtyRegion
impl UnsafeUnpin for DirtyRegion
impl UnwindSafe for DirtyRegion
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more