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 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::SearchKey;
pub use candidate::SourceSpan;
pub use config::MatcherAlgo;
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
config
fzf_query
matcher
normalize
query
rank
stats

Enums§

KeyKind
LangMode
QueryVariantKind

Traits§

LanguageBackend