Struct style::context::PerThreadTraversalStatistics
source · 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: u32
The total number of elements traversed.
elements_styled: u32
The number of elements where has_styles() went from false to true.
elements_matched: u32
The number of elements for which we performed selector matching.
The number of cache hits from the StyleSharingCache.
styles_reused: u32
The number of styles reused via rule node comparison from the StyleSharingCache.
Trait Implementations§
source§impl AddAssign<PerThreadTraversalStatistics> for PerThreadTraversalStatistics
impl AddAssign<PerThreadTraversalStatistics> 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 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 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 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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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