pub struct Diag {
pub severity: String,
pub id: Option<String>,
pub message: String,
pub path: String,
pub code: Option<String>,
pub loc: Option<Loc>,
pub by: Option<String>,
}Fields§
§severity: String§id: Option<String>§message: String§path: String§code: Option<String>§loc: Option<Loc>the source range the checker reported at (the declaration, or the expression under inference)
by: Option<String>the evaluation step that produced it (a slot, a root, an assert): dependency tracking’s tag
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Diag
impl RefUnwindSafe for Diag
impl Send for Diag
impl Sync for Diag
impl Unpin for Diag
impl UnsafeUnpin for Diag
impl UnwindSafe for Diag
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