#[repr(u8)]pub enum PrimitiveCompareResult {
Equal,
Descriptor,
Clip,
Transform,
Image,
OpacityBinding,
ColorBinding,
}
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
Primitives match
Descriptor
Something in the PrimitiveDescriptor was different
Clip
The clip node content or spatial node changed
Transform
The value of the transform changed
Image
An image dependency was dirty
OpacityBinding
The value of an opacity binding changed
ColorBinding
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<PrimitiveCompareResult> for PrimitiveCompareResult
impl PartialEq<PrimitiveCompareResult> 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 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