Appends a context message to the backtrace and return self
(self, input: I, ctx: S)
| 778 | |
| 779 | /// Appends a context message to the backtrace and return self |
| 780 | pub fn with_context<S: Into<Cow<'static, str>>>(self, input: I, ctx: S) -> Self { |
| 781 | self.with_append(input, BgeoParserErrorKind::Context(ctx.into())) |
| 782 | } |
| 783 | |
| 784 | /// Wraps the error into a (recoverable) nom::Err::Error |
| 785 | pub fn into_nom_error(self) -> nom::Err<Self> { |