pub struct Rectangle {
pub top_left: Coord,
pub bottom_right: Coord,
}
Expand description
A rectangle given by its top-left coordinate and bottom-right coordinate.
Fields§
§top_left: Coord
The top-left point
bottom_right: Coord
The bottom-right point
Implementations§
Trait Implementations§
source§impl PartialEq<Rectangle> for Rectangle
impl PartialEq<Rectangle> for Rectangle
impl Copy for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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