Lines Matching refs:CState
183 states: RefCell<Vec<CState>>,
210 enum CState { enum
328 CState::Empty { next } => { in finish()
334 CState::Range { ref range } => { in finish()
339 CState::Sparse { ref mut ranges } => { in finish()
350 CState::Union { ref mut alternates } => { in finish()
358 CState::UnionReverse { ref mut alternates } => { in finish()
367 CState::Match => { in finish()
379 while let CState::Empty { next } = bstates[empty_next] { in finish()
787 CState::Empty { ref mut next } => { in patch()
790 CState::Range { ref mut range } => { in patch()
793 CState::Sparse { .. } => { in patch()
796 CState::Union { ref mut alternates } => { in patch()
799 CState::UnionReverse { ref mut alternates } => { in patch()
802 CState::Match => {} in patch()
808 self.states.borrow_mut().push(CState::Empty { next: 0 }); in add_empty()
815 let state = CState::Range { range: trans }; in add_range()
823 let state = CState::Range { range: ranges[0] }; in add_sparse()
828 let state = CState::Sparse { ranges }; in add_sparse()
835 let state = CState::Union { alternates: vec![] }; in add_union()
842 let state = CState::UnionReverse { alternates: vec![] }; in add_reverse_union()
849 self.states.borrow_mut().push(CState::Match); in add_match()