(str: &'i str)
| 156 | |
| 157 | impl<'i> LexState<'i> { |
| 158 | fn init(str: &'i str) -> Result<LexState<'i>> { |
| 159 | let mut lex_state = LexState { token: Token::None, remaining_str: str.trim() }; |
| 160 | lex_state.get_next()?; |
| 161 | return Ok(lex_state); |
| 162 | } |
| 163 | |
| 164 | // helper function for LexState -- do not call outside of the impl |
| 165 | fn set_token(&mut self, str: &'i str) -> Result<()> { |
no test coverage detected