[][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 From<Extent> for Extent2D[src]

impl Clone for Extent2D[src]

impl Copy for Extent2D[src]

impl PartialEq<Extent2D> for Extent2D[src]

impl PartialOrd<Extent2D> for Extent2D[src]

impl Debug for Extent2D[src]

impl StructuralPartialEq for Extent2D[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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]