BurntSushi / fst

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

implement clone on automaton states #137

Open MarinPostma opened 2 years ago

MarinPostma commented 2 years ago

This pr implements clone for the helper automaton states (StartWithState, UnionState, IntersectionState, and ComplementState), so we can use these automatons with search_with_state.

I have also made the inner automatons public.

Kerollmops commented 2 years ago

Hey @BurntSushi,

We are awaiting this PR to be merged on the Meilisearch side. It doesn't introduce any breaking change and I am sure the changes that Marin is introducing here are just small oversights that you probably forget about. The library should expose those Automaton states for caller libraries to be able to work correctly.

Could you please take a small look at it?

Cheers,