Enum scan_rules::ScanErrorKind [] [src]

pub enum ScanErrorKind {
    LiteralMismatch,
    Syntax(&'static str),
    SyntaxNoMessage,
    ExpectedEnd,
    Float(ParseFloatError),
    Int(ParseIntError),
    Io(Error),
    Other(Box<Error>),
    // some variants omitted
}

Indicates the kind of error that occurred during scanning.

Variants

Failed to match a literal pattern term.

General syntax error.

General syntax error.

Due to Rust issue #26448, some scanners which want to return a Syntax error cannot.

Expected end-of-input.

Floating point parsing failed.

Integer parsing failed.

An IO error occurred.

Some other error occurred.

Methods

impl ScanErrorKind
[src]

Construct an Other error from some generic error value.

Trait Implementations

impl Debug for ScanErrorKind
[src]

Formats the value using the given formatter.

impl Display for ScanErrorKind
[src]

Formats the value using the given formatter. Read more

impl Error for ScanErrorKind
[src]

The lower-level cause of this error, if any. Read more

A short description of the error. Read more