[][src]Struct rustomaton::dfa::DFA

pub struct DFA<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> { /* fields omitted */ }

Implementations

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> DFA<V>[src]

pub fn intersect(self, b: DFA<V>) -> DFA<V>[src]

pub fn minimize(self) -> DFA<V>[src]

pub fn contains(&self, b: &DFA<V>) -> bool[src]

A contains B if and only if for each word w, if B accepts w then A accepts w.

pub fn to_dot(&self) -> String[src]

Returns a string containing the dot description of the automaton

pub fn new_empty(alphabet: &HashSet<V>) -> DFA<V>[src]

Returns an empty automaton with the given alphabet.

pub fn from_raw(
    alphabet: HashSet<V>,
    initial: usize,
    finals: HashSet<usize>,
    transitions: Vec<HashMap<V, usize>>
) -> Result<Self, FromRawError<V>>
[src]

Returns an automaton built from the raw arguments.

Trait Implementations

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Add<DFA<V>> for DFA<V>[src]

The addition fo A and B is an automaton that accepts a word if and only if A or B accept it.

type Output = Self

The resulting type after applying the + operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Automata<V> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Buildable<V> for DFA<V>[src]

impl<V: Clone + Eq + Hash + Display + Copy + Debug + Ord> Clone for DFA<V>[src]

impl<V: Debug + Eq + Hash + Display + Copy + Clone + Ord> Debug for DFA<V>[src]

impl FromStr for DFA<char>[src]

type Err = String

The associated error which can be returned from parsing.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Mul<DFA<V>> for DFA<V>[src]

The multiplication of A and B is A.concatenate(B)

type Output = Self

The resulting type after applying the * operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Neg for DFA<V>[src]

The negation of A is A.negate().

type Output = Self

The resulting type after applying the - operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Not for DFA<V>[src]

The opposite of A is A.reverse().

type Output = Self

The resulting type after applying the ! operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Automaton<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<DFA<V>> for Automaton<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<DFA<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<DFA<V>> for NFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<DFA<V>> for Regex<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<NFA<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialEq<Regex<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> PartialOrd<DFA<V>> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> Sub<DFA<V>> for DFA<V>[src]

The substraction of A and B is an automaton that accepts a word if and only if A accepts it and B doesn't.

type Output = Self

The resulting type after applying the - operator.

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToDfa<V> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToNfa<V> for DFA<V>[src]

impl<V: Eq + Hash + Display + Copy + Clone + Debug + Ord> ToRegex<V> for DFA<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for DFA<V> where
    V: RefUnwindSafe

impl<V> Send for DFA<V> where
    V: Send

impl<V> Sync for DFA<V> where
    V: Sync

impl<V> Unpin for DFA<V> where
    V: Unpin

impl<V> UnwindSafe for DFA<V> where
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.