[][src]Enum web_glitz::image::Region2D

pub enum Region2D {
    Fill,
    Area((u32, u32)u32u32),
}

Represents a region of a 2-dimensional image.

Variants

Fill

Variant that represents the entire image.

Area((u32, u32)u32u32)

Variant that represents an explicit rectangular area of the image.

The first value represent the offset of the origin of the area, relative to the origin of the image; the second argument represents the width of the area; the third argument represents the height of the area.

Trait Implementations

impl Clone for Region2D[src]

impl Copy for Region2D[src]

impl Debug for Region2D[src]

impl Hash for Region2D[src]

impl Into<Region2D> for Region3D[src]

impl PartialEq<Region2D> for Region2D[src]

impl StructuralPartialEq for Region2D[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[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.