pub struct TreeDebugComparisonLevel {
pub level: u8,
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 nodes: Vec<TreeDebugComparedNode>,
}Expand description
Per-level structural sharing summary.
Fields§
§level: u8Tree level where 0 is the leaf level.
Nodes reachable from both sides at this level.
left_only_nodes: usizeNodes reachable only from the left side at this level.
right_only_nodes: usizeNodes reachable only from the right side at this level.
Encoded bytes for shared nodes at this level, counted once.
left_only_bytes: usizeEncoded bytes for left-only nodes at this level.
right_only_bytes: usizeEncoded bytes for right-only nodes at this level.
nodes: Vec<TreeDebugComparedNode>Compared nodes at this level.
Trait Implementations§
Source§impl Clone for TreeDebugComparisonLevel
impl Clone for TreeDebugComparisonLevel
Source§fn clone(&self) -> TreeDebugComparisonLevel
fn clone(&self) -> TreeDebugComparisonLevel
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 TreeDebugComparisonLevel
impl Debug for TreeDebugComparisonLevel
Source§impl Default for TreeDebugComparisonLevel
impl Default for TreeDebugComparisonLevel
Source§fn default() -> TreeDebugComparisonLevel
fn default() -> TreeDebugComparisonLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TreeDebugComparisonLevel
impl<'de> Deserialize<'de> for TreeDebugComparisonLevel
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 TreeDebugComparisonLevel
impl PartialEq for TreeDebugComparisonLevel
Source§impl Serialize for TreeDebugComparisonLevel
impl Serialize for TreeDebugComparisonLevel
impl StructuralPartialEq for TreeDebugComparisonLevel
Auto Trait Implementations§
impl Freeze for TreeDebugComparisonLevel
impl RefUnwindSafe for TreeDebugComparisonLevel
impl Send for TreeDebugComparisonLevel
impl Sync for TreeDebugComparisonLevel
impl Unpin for TreeDebugComparisonLevel
impl UnsafeUnpin for TreeDebugComparisonLevel
impl UnwindSafe for TreeDebugComparisonLevel
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