Skip to main content

Crate neco_fuzzy

Crate neco_fuzzy 

Source
Expand description

Minimal fuzzy score core for commands, paths, and short identifiers.

This crate focuses on pure scoring and ranking only. Filesystem indexing, caches, watchers, and UI rendering stay outside the crate.

Structs§

CorpusStats
Match
Ranked candidate returned from top_k variants.
OwnedPreparedCandidate
永続化やキャッシュ再利用向けの所有 candidate。
PreparedCandidate
繰り返しマッチング用に前処理した借用 candidate。
PreparedCandidateHeader
PreparedCandidateRef
cache-backed 実行向けの借用 view。
PreparedQuery
Query prepared for repeated matching.
Score
Fuzzy score summary for a single query/candidate pair.
ScoreConfig
エネルギーモデルの重みと変換係数をまとめた設定です。
Scratch
Reusable working storage for repeated matching.

Enums§

DecodeError
EncodeError

Constants§

PREPARED_CANDIDATE_ALGORITHM_VERSION
PREPARED_CANDIDATE_FORMAT_VERSION
VALUE_SCALE
energy を互換性のある整数 value に変換するときの尺度です。

Functions§

candidate_fingerprint
match_indices
Write matched character byte offsets into out.
match_indices_prepared
Write matched character byte offsets into out using prepared inputs.
match_indices_prepared_ref
Write matched character byte offsets into out using a borrowed prepared candidate view.
score
Score a candidate with the default case-insensitive matcher.
score_case_sensitive
Score a candidate with case-sensitive matching.
score_case_sensitive_with_config
Score a candidate with case-sensitive matching and an explicit score config.
score_prepared
Score a prepared candidate with a prepared query.
score_prepared_owned
Score an owned prepared candidate with a prepared query.
score_prepared_owned_with_config
Score an owned prepared candidate with explicit config.
score_prepared_owned_with_corpus
Score an owned prepared candidate with explicit config and corpus stats.
score_prepared_ref
Score a borrowed prepared candidate view with a prepared query.
score_prepared_ref_with_config
Score a borrowed prepared candidate view with explicit config.
score_prepared_ref_with_corpus
Score a borrowed prepared candidate view with explicit config and corpus stats.
score_prepared_with_config
Score a prepared candidate with a prepared query and explicit config.
score_prepared_with_corpus
Score a prepared candidate with a prepared query, config, and corpus stats.
score_with_config
Score a candidate with an explicit score config.
score_with_corpus
Score a candidate with an explicit score config and corpus statistics.
top_k
Rank the top limit candidates and write them into out.
top_k_prepared
Rank the top limit prepared candidates and write them into out.
top_k_prepared_refs
Rank the top limit prepared candidate views and write them into out.
top_k_prepared_refs_with_config
Rank the top limit prepared candidate views with explicit config.
top_k_prepared_refs_with_corpus
Rank the top limit prepared candidate views with explicit config and corpus stats.
top_k_prepared_with_config
Rank the top limit prepared candidates with explicit config.
top_k_prepared_with_corpus
Rank the top limit prepared candidates with explicit config and corpus stats.
top_k_with_config
Rank the top limit candidates with an explicit config.
top_k_with_corpus
Rank the top limit candidates with explicit config and corpus stats.