Skip to main content

Crate yuru_core

Crate yuru_core 

Source
Expand description

Core candidate indexing, fuzzy matching, ranking, and source-span data types for Yuru.

This crate is intentionally language-neutral. Japanese, Korean, and Chinese phonetic keys are supplied by separate backend crates through LanguageBackend.

Re-exports§

pub use candidate::build_candidate;
pub use candidate::build_index;
pub use candidate::dedup_and_limit_keys;
pub use candidate::Candidate;
pub use candidate::MappedText;
pub use candidate::MappedTextBuilder;
pub use candidate::SearchKey;
pub use candidate::SourceSpan;
pub use config::KeyBudget;
pub use config::MatcherAlgo;
pub use config::QueryBudget;
pub use config::SearchConfig;
pub use config::Tiebreak;
pub use matcher::match_positions;
pub use matcher::score_exact_text;
pub use matcher::score_text;
pub use matcher::ExactMatcher;
pub use matcher::GreedyMatcher;
pub use matcher::MatchPositions;
pub use matcher::MatcherBackend;
pub use matcher::NucleoMatcher;
pub use query::base_query_variants;
pub use query::dedup_and_limit_variants;
pub use query::key_kind_allowed;
pub use query::PlainBackend;
pub use query::QueryVariant;
pub use rank::search;
pub use rank::search_with_stats;
pub use rank::ScoredCandidate;
pub use stats::SearchStats;

Modules§

candidate
Candidate indexing and search-key construction.
config
Search configuration knobs shared by the CLI and TUI.
matcher
Fuzzy and exact matching backends.
normalize
Unicode normalization helpers used before matching.
query
Query expansion and key compatibility rules.
rank
Candidate ranking and top-result selection.
stats
Counters collected while searching.

Enums§

KeyKind
Kind of indexed key attached to a candidate.
LangMode
Language backend selected for one search run.
QueryVariantKind
Kind of query expansion produced before scoring.

Traits§

LanguageBackend
Language-specific candidate and query expansion.