Struct ketos::parser::ParseError [] [src]

pub struct ParseError {
    pub span: Span,
    pub kind: ParseErrorKind,
}

Represents an error in parsing input.

Fields

span: Span

Span of source code which caused the error

kind: ParseErrorKind

Kind of error generated

Methods

impl ParseError
[src]

fn new(span: Span, kind: ParseErrorKind) -> ParseError

Creates a new ParseError.

Trait Implementations

impl PartialEq for ParseError
[src]

fn eq(&self, __arg_0: &ParseError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ParseError) -> bool

This method tests for !=.

impl Eq for ParseError
[src]

impl Debug for ParseError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ParseError
[src]

fn clone(&self) -> ParseError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ParseError
[src]

impl Display for ParseError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl NameDisplay for ParseError
[src]

fn fmt(&self, _names: &NameStore, f: &mut Formatter) -> Result

Writes the value's display representation to the formatter stream.