pub struct Viewport {
pub rect: Rect,
pub depth: Range<f32>,
}
Expand description
A viewport, generally equating to a window on a display.
Fields§
§rect: Rect
The viewport boundaries.
depth: Range<f32>
The viewport depth limits.
Trait Implementations§
impl StructuralPartialEq for Viewport
Auto Trait Implementations§
impl Freeze for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnwindSafe for Viewport
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