Struct automata::dfa::Dfa

source ·
pub struct Dfa<A: Alphabet> { /* private fields */ }

Implementations

Build a dfa from the connecting edges and final states.

States are numbered in an arbitrary order, except the start label 0. The automaton will deduce the used alphabet subset automatically and test whether it has been used consistently.

Checks if the input word is contained in the language.

The alphabet is the set of symbols in words of that language.

Minimize the automata into its language partition.

Contrary to NFAs, the resulting automaton is guaranteed to be a minimal automaton exactly equivalent to the languages minimal DFA.

Pairs two automata with a given binary boolean operation

If there are no final states, returns None.

Like pair but only determines if the result would be an empty automaton.

This speeds up operations such as equivalence checks.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.