pub struct Rect {
pub pos: Point,
pub size: Point,
}Fields§
§pos: Point§size: PointImplementations§
Trait Implementations§
source§impl AddAssign<&Point> for Rect
impl AddAssign<&Point> for Rect
source§fn add_assign(&mut self, rhs: &Point)
fn add_assign(&mut self, rhs: &Point)
Performs the
+= operation. Read moresource§impl AddAssign<Point> for Rect
impl AddAssign<Point> for Rect
source§fn add_assign(&mut self, rhs: Point)
fn add_assign(&mut self, rhs: Point)
Performs the
+= operation. Read moresource§impl Ord for Rect
impl Ord for Rect
source§impl PartialEq<Rect> for Rect
impl PartialEq<Rect> for Rect
source§impl PartialOrd<Rect> for Rect
impl PartialOrd<Rect> for Rect
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Rect
impl StructuralEq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin 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