Enum cranelift_isle::error::Error [−][src]
pub enum Error {
IoError {
error: Arc<Error>,
context: String,
},
ParseError {
msg: String,
src: Source,
span: SourceSpan,
},
TypeError {
msg: String,
src: Source,
span: SourceSpan,
},
Errors(Vec<Error>),
}
Expand description
Errors produced by ISLE.
Variants
IoError
Fields
context: String
The context explaining what caused the I/O error.
An I/O error.
ParseError
Fields
msg: String
The error message.
src: Source
The input ISLE source.
span: SourceSpan
The location of the parse error.
The input ISLE source has a parse error.
TypeError
Fields
msg: String
The error message.
src: Source
The input ISLE source.
span: SourceSpan
The location of the type error.
The input ISLE source has a type error.
Errors(Vec<Error>)
Multiple errors.
Implementations
Trait Implementations
Labels to apply to this Diagnostic’s Diagnostic::source_code
Source code to apply this Diagnostic’s Diagnostic::labels to.
Additional related Diagnostics.
Unique diagnostic code that can be used to look up more information
about this Diagnostic. Ideally also globally unique, and documented in
the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or Enums will work just fine. Read more
Diagnostic severity. This may be used by [ReportHandler]s to change the display format of this diagnostic. Read more
Additional help text related to this Diagnostic. Do you have any advice for the poor soul who’s just run into this issue? Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more