[−][src]Type Definition ttk91::parsing::ParseError
type ParseError<K, T> = Error<ErrorKind<K, T>, Context>;
Implementations
impl<K, T> ParseError<K, T>
[src]
pub fn end_of_stream() -> ParseError<K, T>
[src]
Creates a new ParseError with the kind ErrorKind::EndOfStream.
pub fn unexpected(span: Span, got: T, expected: String) -> ParseError<K, T>
[src]
Creates a new ParseError with the kind ErrorKind::UnexpectedToken.
pub fn other(span: Span, kind: K) -> ParseError<K, T>
[src]
Creates a new ParseError from an parser of format specific error type. The returned parse error will have a kind of ErrorKind::Other, with the kind set to the provided value.
pub fn span(&self) -> Option<&Span>
[src]
Returns the location of the error relative to the start of the input stream if known.