Enum webrender::CompareHelperResult
source · pub enum CompareHelperResult<T> {
Equal,
Count {
prev_count: u8,
curr_count: u8,
},
Sentinel,
NotEqual {
prev: T,
curr: T,
},
PredicateTrue {
curr: T,
},
}
Expand description
Optional extra information returned by is_same when logging is enabled.
Variants§
Equal
Primitives match
Count
Counts differ
Sentinel
Sentinel
NotEqual
Two items are not equal
PredicateTrue
User callback returned true on item
Fields
§
curr: T
Trait Implementations§
source§impl<T: Clone> Clone for CompareHelperResult<T>
impl<T: Clone> Clone for CompareHelperResult<T>
source§fn clone(&self) -> CompareHelperResult<T>
fn clone(&self) -> CompareHelperResult<T>
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<T: Debug> Debug for CompareHelperResult<T>
impl<T: Debug> Debug for CompareHelperResult<T>
source§impl<T: PartialEq> PartialEq for CompareHelperResult<T>
impl<T: PartialEq> PartialEq for CompareHelperResult<T>
source§fn eq(&self, other: &CompareHelperResult<T>) -> bool
fn eq(&self, other: &CompareHelperResult<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for CompareHelperResult<T>where
T: Serialize,
impl<T> Serialize for CompareHelperResult<T>where
T: Serialize,
impl<T: Copy> Copy for CompareHelperResult<T>
impl<T> StructuralPartialEq for CompareHelperResult<T>
Auto Trait Implementations§
impl<T> Freeze for CompareHelperResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for CompareHelperResult<T>where
T: RefUnwindSafe,
impl<T> Send for CompareHelperResult<T>where
T: Send,
impl<T> Sync for CompareHelperResult<T>where
T: Sync,
impl<T> Unpin for CompareHelperResult<T>where
T: Unpin,
impl<T> UnwindSafe for CompareHelperResult<T>where
T: UnwindSafe,
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