Skip to content

Make public-facing type aliases public #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ pub mod skim;
mod util;

#[cfg(not(feature = "compact"))]
type IndexType = usize;
pub type IndexType = usize;
#[cfg(not(feature = "compact"))]
type ScoreType = i64;
pub type ScoreType = i64;

#[cfg(feature = "compact")]
type IndexType = u32;
pub type IndexType = u32;
#[cfg(feature = "compact")]
type ScoreType = i32;
pub type ScoreType = i32;

pub trait FuzzyMatcher: Send + Sync {
/// fuzzy match choice with pattern, and return the score & matched indices of characters
Expand Down