pub struct DiffTraversalStats {
pub compared_nodes: usize,
pub reused_subtrees: usize,
pub added_subtrees: usize,
pub removed_subtrees: usize,
pub collected_fallbacks: usize,
pub emitted_diffs: usize,
}Expand description
Counters collected while traversing two trees for diff.
Fields§
§compared_nodes: usizeNumber of non-identical node pairs loaded and compared.
reused_subtrees: usizeNumber of equal subtree CIDs skipped without loading the subtree.
added_subtrees: usizeNumber of added subtree frames expanded.
removed_subtrees: usizeNumber of removed subtree frames expanded.
collected_fallbacks: usizeNumber of times diff fell back to collecting and comparing a whole subtree because node shapes or child spans did not align.
emitted_diffs: usizeNumber of diff entries yielded by the traversal.
Trait Implementations§
Source§impl Clone for DiffTraversalStats
impl Clone for DiffTraversalStats
Source§fn clone(&self) -> DiffTraversalStats
fn clone(&self) -> DiffTraversalStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiffTraversalStats
Source§impl Debug for DiffTraversalStats
impl Debug for DiffTraversalStats
Source§impl Default for DiffTraversalStats
impl Default for DiffTraversalStats
Source§fn default() -> DiffTraversalStats
fn default() -> DiffTraversalStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiffTraversalStats
impl<'de> Deserialize<'de> for DiffTraversalStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiffTraversalStats
Source§impl PartialEq for DiffTraversalStats
impl PartialEq for DiffTraversalStats
Source§impl Serialize for DiffTraversalStats
impl Serialize for DiffTraversalStats
impl StructuralPartialEq for DiffTraversalStats
Auto Trait Implementations§
impl Freeze for DiffTraversalStats
impl RefUnwindSafe for DiffTraversalStats
impl Send for DiffTraversalStats
impl Sync for DiffTraversalStats
impl Unpin for DiffTraversalStats
impl UnsafeUnpin for DiffTraversalStats
impl UnwindSafe for DiffTraversalStats
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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