pub struct Rect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}
Fields§
§x: u32
§y: u32
§width: u32
§height: u32
Trait Implementations§
Source§impl From<Rect> for Resolution
impl From<Rect> for Resolution
Source§impl From<Resolution> for Rect
impl From<Resolution> for Rect
Source§fn from(value: Resolution) -> Self
fn from(value: Resolution) -> Self
Converts to this type from the input type.
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq 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