pub struct PixelRect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
Rectangular pixel region specified by top-left origin (x, y) and (width, height) in pixels.
Fields§
§x: u32Left edge in pixels (0-based).
y: u32Top edge in pixels (0-based).
width: u32Region width in pixels.
height: u32Region height in pixels.
Implementations§
Trait Implementations§
impl Copy for PixelRect
impl Eq for PixelRect
impl StructuralPartialEq for PixelRect
Auto Trait Implementations§
impl Freeze for PixelRect
impl RefUnwindSafe for PixelRect
impl Send for PixelRect
impl Sync for PixelRect
impl Unpin for PixelRect
impl UnsafeUnpin for PixelRect
impl UnwindSafe for PixelRect
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