pub struct Vocabulary {
pub header: VocabularyHeader,
pub node_count: Option<usize>,
pub depth: Option<usize>,
}Expand description
A vocabulary as shown by dsp vre vocabulary list — the lean list-index
projection.
Fields§
§header: VocabularyHeader§node_count: Option<usize>Some only when --count fetched this vocabulary’s tree; None
when a per-tree fetch failed (disclosed to the caller, not silently
dropped). Counts nodes strictly BELOW the root — the root itself is
never a node.
depth: Option<usize>Some only under --count. Deepest level; the root’s direct
children sit at level 1.
Trait Implementations§
Source§impl Clone for Vocabulary
impl Clone for Vocabulary
Source§impl Debug for Vocabulary
impl Debug for Vocabulary
impl Eq for Vocabulary
Source§impl PartialEq for Vocabulary
impl PartialEq for Vocabulary
impl StructuralPartialEq for Vocabulary
Auto Trait Implementations§
impl Freeze for Vocabulary
impl RefUnwindSafe for Vocabulary
impl Send for Vocabulary
impl Sync for Vocabulary
impl Unpin for Vocabulary
impl UnsafeUnpin for Vocabulary
impl UnwindSafe for Vocabulary
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.