#[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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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