pub struct TypeDiagnostic {
pub message: String,
pub severity: DiagnosticSeverity,
pub span: Option<Span>,
}Expand description
A diagnostic produced by the type checker.
Fields§
§message: String§severity: DiagnosticSeverity§span: Option<Span>Trait Implementations§
Source§impl Clone for TypeDiagnostic
impl Clone for TypeDiagnostic
Source§fn clone(&self) -> TypeDiagnostic
fn clone(&self) -> TypeDiagnostic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TypeDiagnostic
impl RefUnwindSafe for TypeDiagnostic
impl Send for TypeDiagnostic
impl Sync for TypeDiagnostic
impl Unpin for TypeDiagnostic
impl UnsafeUnpin for TypeDiagnostic
impl UnwindSafe for TypeDiagnostic
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