pub struct Rect {
pub width: f64,
pub height: f64,
}Expand description
Dimensions of a scroll container or viewport.
Represents the width and height of a rectangular area, used for tracking scroll container dimensions and initial rect configuration.
Fields§
§width: f64The width of the rectangle in pixels.
height: f64The height of the rectangle in pixels.
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