pub struct TreeDebugComparison {
pub shared_nodes: usize,
pub left_only_nodes: usize,
pub right_only_nodes: usize,
pub shared_bytes: usize,
pub left_only_bytes: usize,
pub right_only_bytes: usize,
pub levels: Vec<TreeDebugComparisonLevel>,
}Expand description
Structural sharing comparison between two tree roots.
Fields§
Unique CIDs reachable from both roots.
left_only_nodes: usizeUnique CIDs reachable only from the left root.
right_only_nodes: usizeUnique CIDs reachable only from the right root.
Encoded bytes for shared nodes, counted once.
left_only_bytes: usizeEncoded bytes for left-only nodes.
right_only_bytes: usizeEncoded bytes for right-only nodes.
levels: Vec<TreeDebugComparisonLevel>Per-level summaries ordered from root to leaves.
Implementations§
Trait Implementations§
Source§impl Clone for TreeDebugComparison
impl Clone for TreeDebugComparison
Source§fn clone(&self) -> TreeDebugComparison
fn clone(&self) -> TreeDebugComparison
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 moreSource§impl Debug for TreeDebugComparison
impl Debug for TreeDebugComparison
Source§impl Default for TreeDebugComparison
impl Default for TreeDebugComparison
Source§fn default() -> TreeDebugComparison
fn default() -> TreeDebugComparison
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TreeDebugComparison
impl<'de> Deserialize<'de> for TreeDebugComparison
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
Source§impl PartialEq for TreeDebugComparison
impl PartialEq for TreeDebugComparison
Source§impl Serialize for TreeDebugComparison
impl Serialize for TreeDebugComparison
impl StructuralPartialEq for TreeDebugComparison
Auto Trait Implementations§
impl Freeze for TreeDebugComparison
impl RefUnwindSafe for TreeDebugComparison
impl Send for TreeDebugComparison
impl Sync for TreeDebugComparison
impl Unpin for TreeDebugComparison
impl UnsafeUnpin for TreeDebugComparison
impl UnwindSafe for TreeDebugComparison
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