Expand description
A struct that represents a box - top, left, width and height. You might use this for, say, setting the initial frame of a view.
Fields
top: f64
Distance from the top, in points.
left: f64
Distance from the left, in points.
width: f64
Width, in points.
height: f64
Height, in points.
Implementations
Trait Implementations
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more