MCPcopy Create free account
hub / github.com/daisy/MathCAT / init

Method init

src/infer_intent.rs:158–162  ·  view source on GitHub ↗
(str: &'i str)

Source from the content-addressed store, hash-verified

156
157impl<'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<()> {

Callers 3

mainFunction · 0.80
init_loggerFunction · 0.80
init_loggerFunction · 0.80

Calls 1

get_nextMethod · 0.80

Tested by

no test coverage detected