pub struct Extent2D {
pub width: Size,
pub height: Size,
}
Expand description
An extent describes the size of a rectangle, such as
a window or texture. It is not used for referring to a
sub-rectangle; for that see command::Rect
.
Fields§
§width: Size
Width
height: Size
Height
Implementations§
Trait Implementations§
Source§impl PartialOrd for Extent2D
impl PartialOrd for Extent2D
impl Copy for Extent2D
impl StructuralPartialEq for Extent2D
Auto Trait Implementations§
impl Freeze for Extent2D
impl RefUnwindSafe for Extent2D
impl Send for Extent2D
impl Sync for Extent2D
impl Unpin for Extent2D
impl UnwindSafe for Extent2D
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