pub fn add_state(mut self, state: &S) -> Self {
        if !self.dfa.transitions.is_empty() {
            panic!("DFABuilder::add_state(): All states must be added before any transitions are added.");
        }
        self.dfa.states.insert(Rc::new(state.clone()));
        self
    }
/// Adds a state to the `DFA`.
///
/// * Panics if a state is added after any transition has been added. Must add all states before transitions.
Adds a state to the `DFA`.
Panics if a state is added after any transition has been added. Must add all states before transitions.
Adds a state to the ` DFA ` . Panics if a state is added after any transition has been added . Must add all states before transitions .
pub fn add_state(mut self, state: &S) -> Self {
        if !self.dfa.transitions.is_empty() {
            panic!("DFABuilder::add_state(): All states must be added before any transitions are added.");
        }
        self.dfa.states.insert(Rc::new(state.clone()));
        self
    }
pub fn add_state ( mut self , state : & S ) -> Self { if ! self . dfa . transitions . is_empty ( ) { panic ! ( " " ) ; } self . dfa . states . insert ( Rc :: new ( state . clone ( ) ) ) ; self }
Adds a state to the `DFA`.
Adds a state to the ` DFA ` .
mut self
state
&S
mut self
state
&S