fst icon indicating copy to clipboard operation
fst copied to clipboard

levenshtein: LevenshteinState, usize input distance

Open MartinKavik opened this issue 4 years ago • 0 comments

Motivation

  • Get distance while using Map::search_with_state.

Breaking changes

  • Levenshtein::new(query: &str, distance: u32) changed to distance: usize.
  • Original automaton state wrapped into LevenshteinState.

Tests

  • cargo test --features levenshtein
  • New code integrated into the WIP search library I'm working on.

MartinKavik avatar Mar 19 '20 20:03 MartinKavik