Struct sierra::Extent2d[][src]

pub struct Extent2d {
    pub width: ImageSize,
    pub height: ImageSize,
}

Two dimensional extent.

Fields

width: ImageSize

Width of the extent.

height: ImageSize

Height of the extent.

Implementations

impl Extent2d[src]

pub fn aspect_ratio(&self) -> f32[src]

impl Extent2d[src]

pub fn into_3d(self) -> Extent3d[src]

Trait Implementations

impl Clone for Extent2d[src]

impl Copy for Extent2d[src]

impl Debug for Extent2d[src]

impl Eq for Extent2d[src]

impl From<Extent2d> for ImageExtent[src]

impl From<Extent2d> for Rect2d[src]

impl Hash for Extent2d[src]

impl PartialEq<Extent2d> for ImageExtent[src]

impl PartialEq<Extent2d> for Extent2d[src]

impl PartialEq<ImageExtent> for Extent2d[src]

impl PartialOrd<Extent2d> for Extent2d[src]

impl StructuralEq for Extent2d[src]

impl StructuralPartialEq for Extent2d[src]

Auto Trait Implementations

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> Instrument 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.