pub struct QRect {
pub x0: i64,
pub y0: i64,
pub x1: i64,
pub y1: i64,
}Expand description
An axis-aligned rectangle in quanta, top-left origin, x0 ≤ x1, y0 ≤ y1.
Serializes as the contract bbox array [x0, y0, x1, y1].
Fields§
§x0: i64Left edge.
y0: i64Top edge.
x1: i64Right edge.
y1: i64Bottom edge.
Implementations§
Trait Implementations§
impl Copy for QRect
Source§impl<'de> Deserialize<'de> for QRect
impl<'de> Deserialize<'de> for QRect
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QRect
impl StructuralPartialEq for QRect
Auto Trait Implementations§
impl Freeze for QRect
impl RefUnwindSafe for QRect
impl Send for QRect
impl Sync for QRect
impl Unpin for QRect
impl UnsafeUnpin for QRect
impl UnwindSafe for QRect
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