pub struct FloatRect {
pub min: Vec2<f32>,
pub max: Vec2<f32>,
}
Expand description
A rectangular section anywhere in 2D float space.
Fields§
§min: Vec2<f32>
The top left corner location of the rectangle (inclusive)
max: Vec2<f32>
The bottom right corner location of the rectangle (inclusive)
Implementations§
Trait Implementations§
impl Copy for FloatRect
impl StructuralPartialEq for FloatRect
Auto Trait Implementations§
impl Freeze for FloatRect
impl RefUnwindSafe for FloatRect
impl Send for FloatRect
impl Sync for FloatRect
impl Unpin for FloatRect
impl UnwindSafe for FloatRect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)