[][src]Enum azul_core::app_resources::ImageData

pub enum ImageData {
    Raw(Arc<Vec<u8>>),
    External(ExternalImageData),
}

Represents the backing store of an arbitrary series of pixels for display by WebRender. This storage can take several forms.

Variants

Raw(Arc<Vec<u8>>)

A simple series of bytes, provided by the embedding and owned by WebRender. The format is stored out-of-band, currently in ImageDescriptor.

An image owned by the embedding, and referenced by WebRender. This may take the form of a texture or a heap-allocated buffer.

Implementations

impl ImageData[src]

pub fn new_raw(data: Vec<u8>) -> Self[src]

pub fn new_external(data: ExternalImageData) -> Self[src]

Trait Implementations

impl Clone for ImageData[src]

impl Debug for ImageData[src]

impl Eq for ImageData[src]

impl Hash for ImageData[src]

impl Ord for ImageData[src]

impl PartialEq<ImageData> for ImageData[src]

impl PartialOrd<ImageData> for ImageData[src]

impl StructuralEq for ImageData[src]

impl StructuralPartialEq for ImageData[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<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.