Strings in rust contain utf-8 encoded characters. Which is a variable character length encoding. So
let mut index = indicium::simple::SearchIndex::<usize>::default();
index.search("лол"); // lol in Cyrillic
causes an error
thread 'main' panicked at indicium-0.6.1/src/simple/internal/strsim/strsim_context_autocomplete.rs:51:30:
byte index 3 is not a char boundary; it is inside 'о' (bytes 2..4) of `лол`
Strings in rust contain utf-8 encoded characters. Which is a variable character length encoding. So
causes an error
Here's an example of an internal representation: