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: u32The width component of the extent.
height: u32The 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 UnsafeUnpin for Extent2D
impl UnwindSafe for Extent2D
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.