#[repr(C)]pub struct SDL_Rect {
pub x: c_int,
pub y: c_int,
pub w: c_int,
pub h: c_int,
}
Expand description
A rectangle, with the origin at the upper left (integer).
Fields§
§x: c_int
§y: c_int
§w: c_int
§h: c_int
Trait Implementations§
source§impl Ord for SDL_Rect
impl Ord for SDL_Rect
source§impl PartialEq<SDL_Rect> for SDL_Rect
impl PartialEq<SDL_Rect> for SDL_Rect
source§impl PartialOrd<SDL_Rect> for SDL_Rect
impl PartialOrd<SDL_Rect> for SDL_Rect
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_Rect
impl Eq for SDL_Rect
impl StructuralEq for SDL_Rect
impl StructuralPartialEq for SDL_Rect
Auto Trait Implementations§
impl RefUnwindSafe for SDL_Rect
impl Send for SDL_Rect
impl Sync for SDL_Rect
impl Unpin for SDL_Rect
impl UnwindSafe for SDL_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