pub struct TraversalStatistics {
    pub aggregated: PerThreadTraversalStatistics,
    pub selectors: u32,
    pub revalidation_selectors: u32,
    pub dependency_selectors: u32,
    pub declarations: u32,
    pub stylist_rebuilds: u32,
    pub traversal_time: Duration,
    pub is_parallel: bool,
    pub is_large: bool,
}Expand description
Statistics gathered during the traversal plus some information from other sources including stylist.
Fields§
§aggregated: PerThreadTraversalStatisticsAggregated statistics gathered during the traversal.
selectors: u32The number of selectors in the stylist.
revalidation_selectors: u32The number of revalidation selectors.
dependency_selectors: u32The number of state/attr dependencies in the dependency set.
declarations: u32The number of declarations in the stylist.
stylist_rebuilds: u32The number of times the stylist was rebuilt.
traversal_time: DurationTime spent in the traversal, in milliseconds.
is_parallel: boolWhether this was a parallel traversal.
is_large: boolWhether this is a “large” traversal.
Implementations§
Source§impl TraversalStatistics
 
impl TraversalStatistics
Sourcepub fn new<E, D>(
    aggregated: PerThreadTraversalStatistics,
    traversal: &D,
    parallel: bool,
    start: Instant,
) -> TraversalStatisticswhere
    E: TElement,
    D: DomTraversal<E>,
 
pub fn new<E, D>(
    aggregated: PerThreadTraversalStatistics,
    traversal: &D,
    parallel: bool,
    start: Instant,
) -> TraversalStatisticswhere
    E: TElement,
    D: DomTraversal<E>,
Generate complete traversal statistics.
The traversal time is computed given the start time in seconds.
Trait Implementations§
Source§impl Default for TraversalStatistics
 
impl Default for TraversalStatistics
Source§fn default() -> TraversalStatistics
 
fn default() -> TraversalStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraversalStatistics
impl RefUnwindSafe for TraversalStatistics
impl Send for TraversalStatistics
impl Sync for TraversalStatistics
impl Unpin for TraversalStatistics
impl UnwindSafe for TraversalStatistics
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 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