pub struct Rect {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Expand description
矩形,由 (left, top, right, bottom) 定义。 Rectangle defined by (left, top, right, bottom) coordinates.
Fields§
§left: f32左边界 / Left edge
top: f32上边界 / Top edge
right: f32右边界 / Right edge
bottom: f32下边界 / Bottom edge
Implementations§
Trait Implementations§
impl Copy 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