Enum webrender::picture::PrimitiveCompareResult
source · #[repr(u8)]pub enum PrimitiveCompareResult {
Equal = 0,
Descriptor = 1,
Clip = 2,
Transform = 3,
Image = 4,
OpacityBinding = 5,
ColorBinding = 6,
}
Expand description
The result of a primitive dependency comparison. Size is a u8 since this is a hot path in the code, and keeping the data small is a performance win.
Variants§
Equal = 0
Primitives match
Descriptor = 1
Something in the PrimitiveDescriptor was different
Clip = 2
The clip node content or spatial node changed
Transform = 3
The value of the transform changed
Image = 4
An image dependency was dirty
OpacityBinding = 5
The value of an opacity binding changed
ColorBinding = 6
The value of a color binding changed
Trait Implementations§
source§impl Clone for PrimitiveCompareResult
impl Clone for PrimitiveCompareResult
source§fn clone(&self) -> PrimitiveCompareResult
fn clone(&self) -> PrimitiveCompareResult
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 PrimitiveCompareResult
impl Debug for PrimitiveCompareResult
source§impl PartialEq for PrimitiveCompareResult
impl PartialEq for PrimitiveCompareResult
source§fn eq(&self, other: &PrimitiveCompareResult) -> bool
fn eq(&self, other: &PrimitiveCompareResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PrimitiveCompareResult
impl Serialize for PrimitiveCompareResult
impl Copy for PrimitiveCompareResult
impl StructuralPartialEq for PrimitiveCompareResult
Auto Trait Implementations§
impl Freeze for PrimitiveCompareResult
impl RefUnwindSafe for PrimitiveCompareResult
impl Send for PrimitiveCompareResult
impl Sync for PrimitiveCompareResult
impl Unpin for PrimitiveCompareResult
impl UnwindSafe for PrimitiveCompareResult
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