pub struct ViewportRect {
pub min_x: f64,
pub min_y: f64,
pub max_x: f64,
pub max_y: f64,
}Expand description
Represents a rectangular area in screen coordinates (pixels)
Fields§
§min_x: f64§min_y: f64§max_x: f64§max_y: f64Implementations§
Trait Implementations§
Source§impl Clone for ViewportRect
impl Clone for ViewportRect
Source§fn clone(&self) -> ViewportRect
fn clone(&self) -> ViewportRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewportRect
impl Debug for ViewportRect
Source§impl Default for ViewportRect
impl Default for ViewportRect
Source§fn default() -> ViewportRect
fn default() -> ViewportRect
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ViewportRect
impl RefUnwindSafe for ViewportRect
impl Send for ViewportRect
impl Sync for ViewportRect
impl Unpin for ViewportRect
impl UnsafeUnpin for ViewportRect
impl UnwindSafe for ViewportRect
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