[][src]Struct rendy_core::hal::window::Extent2D

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

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: u32

Width

height: u32

Height

Implementations

impl Extent2D[src]

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

Convert into a regular image extent.

Trait Implementations

impl Clone for Extent2D[src]

impl Copy for Extent2D[src]

impl Debug for Extent2D[src]

impl From<Extent> for Extent2D[src]

impl PartialEq<Extent2D> for Extent2D[src]

impl PartialOrd<Extent2D> for Extent2D[src]

impl StructuralPartialEq for Extent2D[src]

Auto Trait Implementations

impl RefUnwindSafe for Extent2D

impl Send for Extent2D

impl Sync for Extent2D

impl Unpin for Extent2D

impl UnwindSafe for Extent2D

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.