Type Definition arithmetic_parser::Error [−][src]
type Error<'a> = SpannedError<&'a str>;
Expand description
Error with code span available as a string reference.
Trait Implementations
impl<'a> ContextError<LocatedSpan<&'a str, ()>> for Error<'a>
[src]
impl<'a> ContextError<LocatedSpan<&'a str, ()>> for Error<'a>
[src]fn add_context(input: InputSpan<'a>, ctx: &'static str, target: Self) -> Self
[src]
fn add_context(input: InputSpan<'a>, ctx: &'static str, target: Self) -> Self
[src]impl<'a> FromExternalError<LocatedSpan<&'a str, ()>, ErrorKind> for Error<'a>
[src]
impl<'a> FromExternalError<LocatedSpan<&'a str, ()>, ErrorKind> for Error<'a>
[src]fn from_external_error(
input: InputSpan<'a>,
_: NomErrorKind,
err: ErrorKind
) -> Self
[src]
fn from_external_error(
input: InputSpan<'a>,
_: NomErrorKind,
err: ErrorKind
) -> Self
[src]impl<'a> ParseError<LocatedSpan<&'a str, ()>> for Error<'a>
[src]
impl<'a> ParseError<LocatedSpan<&'a str, ()>> for Error<'a>
[src]fn from_error_kind(input: InputSpan<'a>, kind: NomErrorKind) -> Self
[src]
fn from_error_kind(input: InputSpan<'a>, kind: NomErrorKind) -> Self
[src]Creates an error from the input position and an ErrorKind
fn append(_: InputSpan<'a>, _: NomErrorKind, other: Self) -> Self
[src]
fn append(_: InputSpan<'a>, _: NomErrorKind, other: Self) -> Self
[src]impl StripCode for Error<'_>
[src]
impl StripCode for Error<'_>
[src]type Stripped = SpannedError<usize>
type Stripped = SpannedError<usize>
Resulting type after code stripping.
fn strip_code(self) -> Self::Stripped
[src]
fn strip_code(self) -> Self::Stripped
[src]Strips references to code fragments in this type.