pub struct MirParseError {
pub line: usize,
pub message: String,
}Expand description
Why one line of a MIR artifact could not be read. MIR artifact 某一行无法读取的原因。
Fields§
§line: usize1-based line of the offending input. 出错输入以 1 起始的行号。
message: StringDescription of what the line got wrong. 对该行错误之处的描述。
Trait Implementations§
Source§impl Clone for MirParseError
impl Clone for MirParseError
Source§fn clone(&self) -> MirParseError
fn clone(&self) -> MirParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MirParseError
impl Debug for MirParseError
Source§impl Display for MirParseError
impl Display for MirParseError
impl Eq for MirParseError
Source§impl Error for MirParseError
impl Error for MirParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for MirParseError
impl PartialEq for MirParseError
impl StructuralPartialEq for MirParseError
Auto Trait Implementations§
impl Freeze for MirParseError
impl RefUnwindSafe for MirParseError
impl Send for MirParseError
impl Sync for MirParseError
impl Unpin for MirParseError
impl UnsafeUnpin for MirParseError
impl UnwindSafe for MirParseError
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