Struct zerotrie::builder::branch_meta::BranchMeta
source · 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: u8
The lead byte for this branch. Formerly it was required to be an ASCII byte, but now it can be any byte.
local_length: usize
The size in bytes of the trie data reachable from this branch.
cumulative_length: usize
The size in bytes of this and all later sibling branches.
count: usize
The number of later sibling branches, including this.
Implementations§
source§impl BranchMeta
impl BranchMeta
sourcepub const fn const_default() -> Self
pub const fn const_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 copy of the value. Read more
1.0.0 · 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)