pub struct Extent2D {
pub width: u32,
pub height: u32,
}
Expand description
A two-dimensional extent, typically representing width and height.
This is commonly used for texture dimensions or window sizes.
Fields§
§width: u32
The width component of the extent.
height: u32
The height component of the extent.
Trait Implementations§
impl Copy for Extent2D
impl Eq 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