neek-core 0.1.0

Core fuzzy matching and scoring engine
Documentation
  • Coverage
  • 100%
    17 out of 17 items documented1 out of 1 items with examples
  • Size
  • Source code size: 42.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 230.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NotAShelf

Fuzzy matching and scoring engine.

Quick start

use neek_core::{has_match, score, score_positions};

let needle = b"src";
let haystack = b"src/main.rs";

assert!(has_match(needle, haystack));

let s = score(needle, haystack);
println!("score: {s}");

let mut positions = vec![0usize; needle.len()];
let s2 = score_positions(needle, haystack, &mut positions);
assert_eq!(s, s2);
println!("matched at positions: {:?}", positions);