Enum nccl::NcclError[][src]

pub enum NcclError {
    UnexpectedToken {
        span: Span,
        expected: TokenKind,
        got: TokenKind,
    },
    UnterminatedString {
        start: usize,
    },
    TrailingCharacters {
        line: usize,
    },
    ScanUnknownEscape {
        line: usize,
        column: usize,
        escape: char,
    },
    ParseUnknownEscape {
        escape: char,
    },
    Utf8 {
        err: Utf8Error,
    },
}
Expand description

Errors that may occur while parsing

Variants

UnexpectedToken

An unexpected token was encountered.

Fields of UnexpectedToken

span: Span

The location of the token.

expected: TokenKind

The kind of token we expected.

got: TokenKind

The kind of token we got.

UnterminatedString

The string was not terminated before the end of the file.

Fields of UnterminatedString

start: usize

The line the string starts on.

TrailingCharacters

There were non-comment characters after a quoted string.

Fields of TrailingCharacters

line: usize

The line the string ends on.

ScanUnknownEscape

The escape code in the file was unknown.

Fields of ScanUnknownEscape

line: usize

The line of the code.

column: usize

The column of the code.

escape: char

The code itself.

ParseUnknownEscape

The escape literal in the key was unknown. See crate::config::Config::parse_quoted.

Fields of ParseUnknownEscape

escape: char

The escape code.

Utf8

A utf-8 string could not be constructed.

Fields of Utf8

err: Utf8Error

The error.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.