Enum lef21::LefError[][src]

pub enum LefError {
    Lex {
        next_char: Option<char>,
        line: usize,
        pos: usize,
    },
    Parse {
        tp: LefParseErrorType,
        ctx: Vec<LefParseContext>,
        token: String,
        line_content: String,
        line_num: usize,
        pos: usize,
    },
    Boxed(Box<dyn Error>),
    Str(String),
}
Expand description

Variants

Lex

Lexer Errors

Fields of Lex

next_char: Option<char>line: usizepos: usize
Parse

Parser Errors

Fields of Parse

tp: LefParseErrorTypectx: Vec<LefParseContext>token: Stringline_content: Stringline_num: usizepos: usize
Boxed(Box<dyn Error>)

Wrapped errors, generally from other crates

Tuple Fields of Boxed

0: Box<dyn Error>
Str(String)

String message-valued errors

Tuple Fields of Str

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Convert string-based errors by wrapping them

Performs the conversion.

Performs the conversion.

Performs the conversion.

Convert string-based errors by wrapping them

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.

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.