pub struct PixelRect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
A rectangle of pixels, inside the image it belongs to.
Fields§
§x: u32§y: u32§w: u32§h: u32Implementations§
Trait Implementations§
impl Copy for PixelRect
impl Eq for PixelRect
Source§impl Ord for PixelRect
impl Ord for PixelRect
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PixelRect
impl PartialOrd for PixelRect
impl StructuralPartialEq for PixelRect
Auto Trait Implementations§
impl Forget for PixelRect
impl Freeze for PixelRect
impl Move 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