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
An unexpected token was encountered.
Fields of UnexpectedToken
The string was not terminated before the end of the file.
Fields of UnterminatedString
start: usize
The line the string starts on.
There were non-comment characters after a quoted string.
Fields of TrailingCharacters
line: usize
The line the string ends on.
The escape code in the file was unknown.
Fields of ScanUnknownEscape
The escape literal in the key was unknown. See crate::config::Config::parse_quoted
.
Fields of ParseUnknownEscape
escape: char
The escape code.
A utf-8 string could not be constructed.
Fields of Utf8
err: Utf8Error
The error.
Trait Implementations
Performs the conversion.