pub struct Vocabulary {
pub entities: Vec<VocabEntity>,
}Fields§
§entities: Vec<VocabEntity>Implementations§
Source§impl Vocabulary
impl Vocabulary
Sourcepub fn from_snapshot(
s: &Snapshot,
frecency_by_fp: &HashMap<String, f64>,
renames_by_fp: &HashMap<String, String>,
pinned_fps: &HashSet<String>,
) -> Vocabulary
pub fn from_snapshot( s: &Snapshot, frecency_by_fp: &HashMap<String, f64>, renames_by_fp: &HashMap<String, String>, pinned_fps: &HashSet<String>, ) -> Vocabulary
Builds a vocabulary from a snapshot plus the profile (frecency / renames / pins keyed by fingerprint).
Every group is an entity; its user rename and the distinct names of its member processes (e.g. the
claude binary inside “Claude Code”, at most VOCAB_MAX_MEMBER_ALIASES) are aliases, so typing a
process name finds its group. Processes outside any group are added as pid:<n> entities (largest
first, capped at VOCAB_MAX_PROCESSES).
Trait Implementations§
Source§impl Clone for Vocabulary
impl Clone for Vocabulary
Source§impl Debug for Vocabulary
impl Debug for Vocabulary
Source§impl Default for Vocabulary
impl Default for Vocabulary
Source§impl PartialEq for Vocabulary
impl PartialEq for Vocabulary
impl StructuralPartialEq for Vocabulary
Auto Trait Implementations§
impl Forget for Vocabulary
impl Freeze for Vocabulary
impl Move for Vocabulary
impl RefUnwindSafe for Vocabulary
impl Send for Vocabularywhere
RawVecInner: Send,
impl Sync for Vocabularywhere
RawVecInner: Sync,
impl Unpin for Vocabulary
impl UnsafeUnpin for Vocabulary
impl UnwindSafe for Vocabularywhere
RawVecInner: UnwindSafe,
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