[][src]Struct swsurface::ImageInfo

pub struct ImageInfo {
    pub extent: [u32; 2],
    pub stride: usize,
    pub format: Format,
}

Describes the format of a swapchain image.

A swapchain image is a row-major top-down bitmap.

Fields

extent: [u32; 2]

The image size ([width, height]), measured in bytes.

stride: usize

The offset between rows, measured in bytes.

format: Format

The pixel format.

Trait Implementations

impl Clone for ImageInfo[src]

impl Copy for ImageInfo[src]

impl Debug for ImageInfo[src]

impl Default for ImageInfo[src]

impl Eq for ImageInfo[src]

impl Hash for ImageInfo[src]

impl PartialEq<ImageInfo> for ImageInfo[src]

impl StructuralEq for ImageInfo[src]

impl StructuralPartialEq for ImageInfo[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> Erased for T[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.