[][src]Struct gfx_hal::window::Extent2D

pub struct Extent2D {
    pub width: Size,
    pub height: Size,
}

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

Methods

impl Extent2D[src]

pub fn to_extent(&self) -> Extent[src]

Convert into a regular image extent.

Trait Implementations

impl Copy for Extent2D[src]

impl Clone for Extent2D[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Extent2D> for Extent2D[src]

impl PartialEq<Extent2D> for Extent2D[src]

impl From<Extent> for Extent2D[src]

impl Debug for Extent2D[src]

impl Serialize for Extent2D[src]

impl<'de> Deserialize<'de> for Extent2D[src]

Auto Trait Implementations

impl Unpin for Extent2D

impl Sync for Extent2D

impl Send for Extent2D

impl UnwindSafe for Extent2D

impl RefUnwindSafe for Extent2D

Blanket Implementations

impl<T> Supports<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]