pub struct PerThreadTraversalStatistics {
    pub elements_traversed: u32,
    pub elements_styled: u32,
    pub elements_matched: u32,
    pub styles_shared: u32,
    pub styles_reused: u32,
}Expand description
Statistics gathered during the traversal. We gather statistics on each thread and then combine them after the threads join via the Add implementation below.
Fields§
§elements_traversed: u32The total number of elements traversed.
elements_styled: u32The number of elements where has_styles() went from false to true.
elements_matched: u32The number of elements for which we performed selector matching.
The number of cache hits from the StyleSharingCache.
styles_reused: u32The number of styles reused via rule node comparison from the StyleSharingCache.
Trait Implementations§
Source§impl AddAssign for PerThreadTraversalStatistics
 
impl AddAssign for PerThreadTraversalStatistics
Source§fn add_assign(&mut self, rhs: PerThreadTraversalStatistics)
 
fn add_assign(&mut self, rhs: PerThreadTraversalStatistics)
Performs the 
+= operation. Read moreSource§impl Clone for PerThreadTraversalStatistics
 
impl Clone for PerThreadTraversalStatistics
Source§fn clone(&self) -> PerThreadTraversalStatistics
 
fn clone(&self) -> PerThreadTraversalStatistics
Returns a duplicate 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 Default for PerThreadTraversalStatistics
 
impl Default for PerThreadTraversalStatistics
Source§fn default() -> PerThreadTraversalStatistics
 
fn default() -> PerThreadTraversalStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerThreadTraversalStatistics
impl RefUnwindSafe for PerThreadTraversalStatistics
impl Send for PerThreadTraversalStatistics
impl Sync for PerThreadTraversalStatistics
impl Unpin for PerThreadTraversalStatistics
impl UnwindSafe for PerThreadTraversalStatistics
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
 
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
 
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
 
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
 
fn maybe_boxed(self) -> T
Convert