pub struct ImageRegion {
pub x: usize,
pub y: usize,
pub width: usize,
pub height: usize,
}Expand description
A checked rectangular image region.
Fields§
§x: usizeHorizontal origin.
y: usizeVertical origin.
width: usizeRegion width.
height: usizeRegion height.
Implementations§
Trait Implementations§
Source§impl Clone for ImageRegion
impl Clone for ImageRegion
Source§fn clone(&self) -> ImageRegion
fn clone(&self) -> ImageRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageRegion
impl Debug for ImageRegion
Source§impl Default for ImageRegion
impl Default for ImageRegion
Source§fn default() -> ImageRegion
fn default() -> ImageRegion
Returns the “default value” for a type. Read more
Source§impl Hash for ImageRegion
impl Hash for ImageRegion
Source§impl PartialEq for ImageRegion
impl PartialEq for ImageRegion
Source§fn eq(&self, other: &ImageRegion) -> bool
fn eq(&self, other: &ImageRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageRegion
impl Eq for ImageRegion
impl StructuralPartialEq for ImageRegion
Auto Trait Implementations§
impl Freeze for ImageRegion
impl RefUnwindSafe for ImageRegion
impl Send for ImageRegion
impl Sync for ImageRegion
impl Unpin for ImageRegion
impl UnsafeUnpin for ImageRegion
impl UnwindSafe for ImageRegion
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