#[repr(C)]pub struct CGRect {
pub origin: CGPoint,
pub size: CGSize,
}
Expand description
A structure that contains a rectangle in a two-dimensional coordinate system.
Fields§
§origin: CGPoint
A point that specifies the coordinates of the rectangle’s origin.
size: CGSize
A size that specifies the height and width of the rectangle.
Trait Implementations§
impl Copy for CGRect
impl StructuralPartialEq for CGRect
Auto Trait Implementations§
impl Freeze for CGRect
impl RefUnwindSafe for CGRect
impl Send for CGRect
impl Sync for CGRect
impl Unpin for CGRect
impl UnwindSafe for CGRect
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