pub struct TreeDebugNode {
pub cid: Cid,
pub leaf: bool,
pub level: u8,
pub entry_count: usize,
pub max_entries: usize,
pub fill_factor: f64,
pub encoded_bytes: usize,
pub first_key: Option<Vec<u8>>,
pub last_key: Option<Vec<u8>>,
}Expand description
Inspectable node metadata for debug tooling.
Fields§
§cid: CidContent identifier for this node.
leaf: boolWhether this node stores leaf values instead of child CIDs.
level: u8Tree level where 0 is the leaf level.
entry_count: usizeNumber of entries in the node.
max_entries: usizeMaximum entries configured for this node.
fill_factor: f64entry_count / max_entries, or 0.0 when max_entries is zero.
encoded_bytes: usizeCompact encoded byte size of the node.
first_key: Option<Vec<u8>>First separator or leaf key in this node.
last_key: Option<Vec<u8>>Last separator or leaf key in this node.
Trait Implementations§
Source§impl Clone for TreeDebugNode
impl Clone for TreeDebugNode
Source§fn clone(&self) -> TreeDebugNode
fn clone(&self) -> TreeDebugNode
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 TreeDebugNode
impl Debug for TreeDebugNode
Source§impl<'de> Deserialize<'de> for TreeDebugNode
impl<'de> Deserialize<'de> for TreeDebugNode
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 TreeDebugNode
impl PartialEq for TreeDebugNode
Source§impl Serialize for TreeDebugNode
impl Serialize for TreeDebugNode
impl StructuralPartialEq for TreeDebugNode
Auto Trait Implementations§
impl Freeze for TreeDebugNode
impl RefUnwindSafe for TreeDebugNode
impl Send for TreeDebugNode
impl Sync for TreeDebugNode
impl Unpin for TreeDebugNode
impl UnsafeUnpin for TreeDebugNode
impl UnwindSafe for TreeDebugNode
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