Struct cranelift_reader::ParseError
source · pub struct ParseError {
pub location: Location,
pub message: String,
pub is_warning: bool,
}
Expand description
A parse error is returned when the parse failed.
Fields§
§location: Location
Location of the error.
message: String
Error message.
is_warning: bool
Whether it’s a warning or a plain error.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseOptionError> for ParseError
impl From<ParseOptionError> for ParseError
source§fn from(err: ParseOptionError) -> Self
fn from(err: ParseOptionError) -> Self
Converts to this type from the input type.