pub fn mark_accept_state(mut self, state: &S) -> Self {
        match self.dfa.states.get(state) {
            Some(state) => {
                if let Some(state) = self.dfa.dead_states.get(state) {
                    panic!("DFABuilder::mark_accept_state(): Attempted to mark a dead state ({:?}) as an accept state.", state);
                }
                self.dfa.accept_states.insert(state.clone());
            }
            None => panic!("DFABuilder::mark_accept_state(): Attempted to mark a non-existent state ({:?}) as an accept state.", state),
        }
        self
    }
/// Marks a state as an accept state.
///
/// * Panics if the provided state does not exist in this [DFA](struct.DFA.html).
Marks a state as an accept state.
Panics if the provided state does not exist in this [DFA](struct.DFA.html).
Marks a state as an accept state . Panics if the provided state does not exist in this [ DFA ] ( struct . DFA . html ) .
pub fn mark_accept_state(mut self, state: &S) -> Self {
        match self.dfa.states.get(state) {
            Some(state) => {
                if let Some(state) = self.dfa.dead_states.get(state) {
                    panic!("DFABuilder::mark_accept_state(): Attempted to mark a dead state ({:?}) as an accept state.", state);
                }
                self.dfa.accept_states.insert(state.clone());
            }
            None => panic!("DFABuilder::mark_accept_state(): Attempted to mark a non-existent state ({:?}) as an accept state.", state),
        }
        self
    }
pub fn mark_accept_state ( mut self , state : & S ) -> Self { match self . dfa . states . get ( state ) { Some ( state ) => { if let Some ( state ) = self . dfa . dead_states . get ( state ) { panic ! ( " " state ) ; } self . dfa . accept_states . insert ( state . clone ( ) ) ; } None => panic ! ( " " state ) , } self }
Marks a state as an accept state.
Marks a state as an accept state .
mut self
state
&S
mut self
state
&S