pub struct FileDiagnostic {
pub line: u32,
pub kind: String,
pub message: String,
}Expand description
One non-fatal diagnostic emitted while lowering a source file.
Fields§
§line: u32The 1-based line number where the diagnostic applies.
kind: StringA stable machine-readable category for the diagnostic, such as rejected-statement.
message: StringA human-readable description of the diagnostic.
Trait Implementations§
Source§impl Clone for FileDiagnostic
impl Clone for FileDiagnostic
Source§impl Debug for FileDiagnostic
impl Debug for FileDiagnostic
impl Eq for FileDiagnostic
Source§impl PartialEq for FileDiagnostic
impl PartialEq for FileDiagnostic
impl StructuralPartialEq for FileDiagnostic
Auto Trait Implementations§
impl Forget for FileDiagnostic
impl Freeze for FileDiagnostic
impl Move for FileDiagnostic
impl RefUnwindSafe for FileDiagnostic
impl Send for FileDiagnosticwhere
RawVecInner: Send,
impl Sync for FileDiagnosticwhere
RawVecInner: Sync,
impl Unpin for FileDiagnostic
impl UnsafeUnpin for FileDiagnostic
impl UnwindSafe for FileDiagnosticwhere
RawVecInner: UnwindSafe,
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