pub struct Rect {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}
Expand description
Creates a new Rect
from values.
Returns rect’s left edge position.
Returns rect’s right edge position.
Returns rect’s top edge position.
Returns rect’s bottom edge position.
Checks that the rect contains a point.
Checks that the rect has a valid size.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Returns true
if values are approximately equal.
Returns true
if values are not approximately equal.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.