#[repr(C)]pub struct Rectu {
pub left: u32,
pub top: u32,
pub right: u32,
pub bottom: u32,
}
Expand description
Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).
Fields§
§left: u32
The x-coordinate of the upper-left corner of the rectangle.
top: u32
The y-coordinate of the upper-left corner of the rectangle.
right: u32
The x-coordinate of the lower-right corner of the rectangle.
bottom: u32
The y-coordinate of the lower-right corner of the rectangle.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rectu
impl<'de> Deserialize<'de> for Rectu
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rectu
impl Eq for Rectu
impl StructuralPartialEq for Rectu
Auto Trait Implementations§
impl Freeze for Rectu
impl RefUnwindSafe for Rectu
impl Send for Rectu
impl Sync for Rectu
impl Unpin for Rectu
impl UnwindSafe for Rectu
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