pub struct Rect {
pub origin: (usize, usize),
pub size: (usize, usize),
}Fields§
§origin: (usize, usize)§size: (usize, usize)Implementations§
Source§impl Rect
impl Rect
pub fn check_within(&self, size: (usize, usize))
pub fn to_byte_rect(&self, data_type: DataTypeTag) -> Rect
pub fn to_byte_rect_sz(&self, sz: usize) -> Rect
pub fn downsample(&self, downsample: (u8, u8)) -> Rect
pub fn end(&self) -> (usize, usize)
pub fn clip(&self, size: (usize, usize)) -> Rect
Trait Implementations§
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