Enum webrender_api::ImageData [−][src]
pub enum ImageData { Raw(Arc<Vec<u8>>), Blob(Arc<BlobImageData>), External(ExternalImageData), }
Variants
Raw(Arc<Vec<u8>>)
Blob(Arc<BlobImageData>)
External(ExternalImageData)
Methods
impl ImageData
[src]
impl ImageData
pub fn new(bytes: Vec<u8>) -> Self
[src]
pub fn new(bytes: Vec<u8>) -> Self
pub fn new_blob_image(commands: BlobImageData) -> Self
[src]
pub fn new_blob_image(commands: BlobImageData) -> Self
pub fn is_blob(&self) -> bool
[src]
pub fn is_blob(&self) -> bool
pub fn uses_texture_cache(&self) -> bool
[src]
pub fn uses_texture_cache(&self) -> bool
Trait Implementations
impl Clone for ImageData
[src]
impl Clone for ImageData
fn clone(&self) -> ImageData
[src]
fn clone(&self) -> ImageData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ImageData
[src]
impl Debug for ImageData