Enum cranelift_isle::error::Error
source · pub enum Error {
IoError {
error: Error,
context: String,
},
ParseError {
msg: String,
span: Span,
},
TypeError {
msg: String,
span: Span,
},
UnreachableError {
msg: String,
span: Span,
},
OverlapError {
msg: String,
rules: Vec<Span>,
},
ShadowedError {
shadowed: Vec<Span>,
mask: Span,
},
}
Expand description
Errors produced by ISLE.
Variants§
IoError
Fields
An I/O error.
ParseError
The input ISLE source has a parse error.
TypeError
The input ISLE source has a type error.
UnreachableError
The rule can never match any input.
OverlapError
Fields
The rules mentioned overlap in the input they accept.
ShadowedError
Fields
The rules can never match because another rule will always match first.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more