pub struct Rect {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
A rectangle in the host’s logical coordinates: points, origin at the top-left of the window’s content area, y growing downwards.
Fields§
§x: f64Left edge.
y: f64Top edge.
width: f64Width.
height: f64Height.
Implementations§
Trait Implementations§
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Forget for Rect
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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