Struct webrender::picture::ExternalNativeSurfaceKey
source · pub struct ExternalNativeSurfaceKey {
pub image_keys: [ImageKey; 3],
pub size: Option<DeviceIntSize>,
}
Expand description
Hash key for an external native compositor surface
Fields§
§image_keys: [ImageKey; 3]
The YUV/RGB image keys that are used to draw this surface.
size: Option<DeviceIntSize>
If this is not an ‘external’ compositor surface created via Compositor::create_external_surface, this is set to the current device size of the surface.
Trait Implementations§
source§impl Hash for ExternalNativeSurfaceKey
impl Hash for ExternalNativeSurfaceKey
source§impl PartialEq for ExternalNativeSurfaceKey
impl PartialEq for ExternalNativeSurfaceKey
source§fn eq(&self, other: &ExternalNativeSurfaceKey) -> bool
fn eq(&self, other: &ExternalNativeSurfaceKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternalNativeSurfaceKey
impl StructuralPartialEq for ExternalNativeSurfaceKey
Auto Trait Implementations§
impl Freeze for ExternalNativeSurfaceKey
impl RefUnwindSafe for ExternalNativeSurfaceKey
impl Send for ExternalNativeSurfaceKey
impl Sync for ExternalNativeSurfaceKey
impl Unpin for ExternalNativeSurfaceKey
impl UnwindSafe for ExternalNativeSurfaceKey
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more