BurntSushi / fst

Represent large sets and maps compactly with finite state transducers.
The Unlicense
1.78k stars 126 forks source link

automaton: generalize Str and Subsequence to AsRef<[u8]> #139

Open mcuelenaere opened 2 years ago

mcuelenaere commented 2 years ago

Previously, Str and Subsequence only accepted &[u8]. This makes it impossible for callers to transfer ownership of the underlying data, eg if they have a Vec that they cannot keep hold of themselves.