Struct silkenweb::hydration::HydrationStats
source · pub struct HydrationStats { /* private fields */ }
Expand description
Statistics about the hydration process.
Implementations§
source§impl HydrationStats
impl HydrationStats
sourcepub fn only_whitespace_diffs(&self) -> bool
pub fn only_whitespace_diffs(&self) -> bool
true
if the only diffs between the existing HTML and the element were
whitespace only text nodes.
sourcepub fn exact_match(&self) -> bool
pub fn exact_match(&self) -> bool
true
if there were no diffs between the existing HTML and the element.
sourcepub fn nodes_added(&self) -> u64
pub fn nodes_added(&self) -> u64
The number of new nodes that were added during hydration.
sourcepub fn nodes_removed(&self) -> u64
pub fn nodes_removed(&self) -> u64
The number of existing (non empty text) nodes that were removed during hydration.
sourcepub fn empty_text_removed(&self) -> u64
pub fn empty_text_removed(&self) -> u64
The number of existing empty text nodes that were removed during hydration.
sourcepub fn attributes_set(&self) -> u64
pub fn attributes_set(&self) -> u64
The number of new attributes that needed to be set during hydration.
sourcepub fn attributes_removed(&self) -> u64
pub fn attributes_removed(&self) -> u64
The number of existing attributes that were removed during hydration.
Trait Implementations§
source§impl Default for HydrationStats
impl Default for HydrationStats
source§fn default() -> HydrationStats
fn default() -> HydrationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HydrationStats
impl RefUnwindSafe for HydrationStats
impl Send for HydrationStats
impl Sync for HydrationStats
impl Unpin for HydrationStats
impl UnwindSafe for HydrationStats
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