pub struct Diagnostics {
pub code: DiagnosticCode,
pub start_line: u32,
pub start_col: u32,
pub end_line: u32,
pub end_col: u32,
}Expand description
Represents a diagnostic message produced by the compiler.
Fields§
§code: DiagnosticCodeThe diagnostic code associated with this message.
start_line: u32The starting line of the diagnostic message (1-based).
start_col: u32The starting column of the diagnostic message (1-based).
end_line: u32The ending line of the diagnostic message (1-based).
end_col: u32The ending column of the diagnostic message (1-based).
Trait Implementations§
Source§impl Debug for Diagnostics
impl Debug for Diagnostics
Source§impl Display for Diagnostics
impl Display for Diagnostics
Source§impl Error for Diagnostics
impl Error for Diagnostics
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()
Auto Trait Implementations§
impl Freeze for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnostics
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