pub struct Rect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
Axis-aligned rectangle in pixel coordinates.
Used to describe regions of interest for analysis helpers like
blur_variance_in. Origin is the top-left of the frame.
Fields§
§x: u32Left edge in pixels from the frame’s left side.
y: u32Top edge in pixels from the frame’s top.
width: u32Width of the rectangle in pixels.
height: u32Height of the rectangle in pixels.
Trait Implementations§
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin for Rect
impl UnwindSafe for Rect
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