Struct rectcut_rs::Rect
source · [−]Expand description
The Rect struct represents an area, such as an area of the screen, by its minimum x and y and maximum x and y.
Fields
minx: f32
miny: f32
maxx: f32
maxy: f32
Implementations
Cut out the left of the rect, returning the left piece and modifying the original Rect.
Cut out the right of the rect, returning the right piece and modifying the original Rect.
Cut out the top of the rect, returning the top piece and modifying the original Rect.
Cut out the bottom of the rect, returning the bottom piece and modifying the original Rect.
Cut out the left of the rect, leaving the original unmodified.
Cut out the right of the rect, leaving the original unmodified.
Cut out the top of the rect, leaving the original unmodified.
Cut out the bottom of the rect, leaving the original unmodified.
Create a rect that extends the given rect out to the left, leaving the original unmodified.
Create a rect that extends the given rect out to the right, leaving the original unmodified.
Create a rect that extends the given rect out to the top, leaving the original unmodified.
Create a rect that extends the given rect out to the bottom, leaving the original unmodified.
Extend the rect out in all directions, leaving the original unmodified.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl UnwindSafe for Rect
Blanket Implementations
Mutably borrows from an owned value. Read more