pub struct ImageRect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
A rectangle of an image, in image pixels.
Fields§
§x: u32Left edge.
y: u32Top edge.
w: u32Width.
h: u32Height.
Trait Implementations§
impl Copy for ImageRect
impl Eq for ImageRect
impl StructuralPartialEq for ImageRect
Auto Trait Implementations§
impl Freeze for ImageRect
impl RefUnwindSafe for ImageRect
impl Send for ImageRect
impl Sync for ImageRect
impl Unpin for ImageRect
impl UnsafeUnpin for ImageRect
impl UnwindSafe for ImageRect
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