MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / parse_with_error

Method parse_with_error

src/parser.rs:206–213  ·  view source on GitHub ↗
(&self, input: &str)

Source from the content-addressed store, hash-verified

204 }
205
206 pub fn parse_with_error(&self, input: &str) -> Result<Option<ParseResult>, String> {
207 let captures = match self.match_re.captures(input) {
208 Some(captures) => captures,
209 None => return Ok(None),
210 };
211 self.try_evaluate_captures(&captures, input, 0)
212 .map_err(EvaluateError::into_message)
213 }
214
215 /// Search for the format pattern anywhere in the string.
216 ///

Callers 1

parseFunction · 0.80

Calls 1

try_evaluate_capturesMethod · 0.80

Tested by

no test coverage detected