pub struct Rect {
pub x: i32,
pub y: i32,
pub w: i32,
pub h: i32,
}Expand description
A rectangle of cells. A non-positive w or h means empty.
Fields§
§x: i32Left column.
y: i32Top row.
w: i32Width in cells.
h: i32Height in cells.
Implementations§
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