Struct softbuffer::Rect
source · pub struct Rect {
pub x: u32,
pub y: u32,
pub width: NonZeroU32,
pub height: NonZeroU32,
}Expand description
A rectangular region of the buffer coordinate space.
Fields§
§x: u32x coordinate of top left corner
y: u32y coordinate of top left corner
width: NonZeroU32width
height: NonZeroU32height
Trait Implementations§
Auto Trait Implementations§
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