#[repr(C)]pub struct Recti {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}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: i32The x-coordinate of the upper-left corner of the rectangle.
top: i32The y-coordinate of the upper-left corner of the rectangle.
right: i32The x-coordinate of the lower-right corner of the rectangle.
bottom: i32The y-coordinate of the lower-right corner of the rectangle.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recti
impl<'de> Deserialize<'de> for Recti
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 Recti
impl Eq for Recti
impl StructuralPartialEq for Recti
Auto Trait Implementations§
impl Freeze for Recti
impl RefUnwindSafe for Recti
impl Send for Recti
impl Sync for Recti
impl Unpin for Recti
impl UnwindSafe for Recti
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