pub struct Rect {
pub x0: f64,
pub y0: f64,
pub x1: f64,
pub y1: f64,
}Expand description
A rectangle.
Fields§
§x0: f64The minimum x coordinate.
y0: f64The minimum y coordinate.
x1: f64The maximum x coordinate.
y1: f64The maximum y coordinate.
Implementations§
Trait Implementations§
impl Copy 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> FromBytes<'a> for Twhere
T: Readable<'a>,
impl<'a, T> FromBytes<'a> for Twhere
T: Readable<'a>,
Source§fn from_bytes(b: &'a [u8]) -> Option<T>
fn from_bytes(b: &'a [u8]) -> Option<T>
Try to read the object from the given bytes.