starAndHonor/fst/automaton does not have a README file
pub(open) trait Automaton {
fn start(Self) -> Int
fn accept(Self, Int, Byte) -> Int
fn is_match(Self, Int) -> Bool
fn can_match(Self, Int) -> Bool
fn will_always_match(Self, Int) -> Bool
fn accept_eof(Self, Int) -> Int?
}pub struct DfaBuilder {
// private fields
}fn DfaBuilder::add_range(self : DfaBuilder, from : Int, lower : Byte, upper : Byte, to : Int) -> Unit raise AutomatonErrorfn DfaBuilder::add_transition(self : DfaBuilder, from : Int, byte : Byte, to : Int) -> Unit raise AutomatonErrorfn DfaBuilder::remove_transition(self : DfaBuilder, from : Int, byte : Byte) -> Unit raise AutomatonErrorfn DfaBuilder::set_match(self : DfaBuilder, state : Int, accepting : Bool) -> Unit raise AutomatonErrorpub struct Matcher {
// private fields
}let default_state_limit : Intfn levenshtein(query : String, distance : Int, max_states? : Int, max_work? : Int) -> Matcher raise AutomatonErrorInstall
Download zipCompact immutable byte-string sets and maps, ported from Rust fst 0.4.7