pub struct Rect {
pub x: f64,
pub y: f64,
pub w: f64,
pub h: f64,
}Expand description
Logical-points rectangle (origin top-left, +x right, +y down — matches
UIKit / XCUITest coordinate space). All fields f64 because the
runner /tree route emits floating-point points (sub-pixel scale
factors).
Fields§
§x: f64Top-left x coordinate in logical points.
y: f64Top-left y coordinate in logical points.
w: f64Width in logical points (zero or negative = invisible).
h: f64Height in logical points (zero or negative = invisible).
Trait Implementations§
impl Copy for Rect
Source§impl<'de> Deserialize<'de> for Rect
impl<'de> Deserialize<'de> for Rect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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