Struct webrender_api::image::ExternalImageData
source · #[repr(C)]pub struct ExternalImageData {
pub id: ExternalImageId,
pub channel_index: u8,
pub image_type: ExternalImageType,
}
Expand description
Descriptor for external image resources. See ImageData
.
Fields§
§id: ExternalImageId
The identifier of this external image, provided by the embedding.
channel_index: u8
For multi-plane images (i.e. YUV), indicates the plane of the original image that this struct represents. 0 for single-plane images.
image_type: ExternalImageType
Storage format identifier.
Trait Implementations§
source§impl Clone for ExternalImageData
impl Clone for ExternalImageData
source§fn clone(&self) -> ExternalImageData
fn clone(&self) -> ExternalImageData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternalImageData
impl Debug for ExternalImageData
source§impl<'de> Deserialize<'de> for ExternalImageData
impl<'de> Deserialize<'de> for ExternalImageData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ExternalImageData
impl Hash for ExternalImageData
source§impl PartialEq for ExternalImageData
impl PartialEq for ExternalImageData
source§fn eq(&self, other: &ExternalImageData) -> bool
fn eq(&self, other: &ExternalImageData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExternalImageData
impl Serialize for ExternalImageData
impl Copy for ExternalImageData
impl Eq for ExternalImageData
impl StructuralPartialEq for ExternalImageData
Auto Trait Implementations§
impl Freeze for ExternalImageData
impl RefUnwindSafe for ExternalImageData
impl Send for ExternalImageData
impl Sync for ExternalImageData
impl Unpin for ExternalImageData
impl UnwindSafe for ExternalImageData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more