pub(crate) struct BranchMeta {
pub ascii: u8,
pub local_length: usize,
pub cumulative_length: usize,
pub count: usize,
}Expand description
Intermediate metadata for a branch node under construction.
Fields§
§ascii: u8The lead byte for this branch. Formerly it was required to be an ASCII byte, but now it can be any byte.
local_length: usizeThe size in bytes of the trie data reachable from this branch.
cumulative_length: usizeThe size in bytes of this and all later sibling branches.
count: usizeThe number of later sibling branches, including this.
Implementations§
Source§impl BranchMeta
impl BranchMeta
Sourcepub const fn default() -> Self
pub const fn default() -> Self
Creates a new empty BranchMeta.
Trait Implementations§
Source§impl Clone for BranchMeta
impl Clone for BranchMeta
Source§fn clone(&self) -> BranchMeta
fn clone(&self) -> BranchMeta
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 BranchMeta
impl Debug for BranchMeta
impl Copy for BranchMeta
Auto Trait Implementations§
impl Freeze for BranchMeta
impl RefUnwindSafe for BranchMeta
impl Send for BranchMeta
impl Sync for BranchMeta
impl Unpin for BranchMeta
impl UnsafeUnpin for BranchMeta
impl UnwindSafe for BranchMeta
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