(&self, input: &str)
| 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 | /// |
no test coverage detected