pub struct FormattedDiagnostic {
pub code: String,
pub message: String,
pub severity: Severity,
pub span: Span,
pub notes: Vec<String>,
pub rendered: String,
}Fields§
§code: String§message: String§severity: Severity§span: Span§notes: Vec<String>§rendered: StringTrait Implementations§
Source§impl Clone for FormattedDiagnostic
impl Clone for FormattedDiagnostic
Source§fn clone(&self) -> FormattedDiagnostic
fn clone(&self) -> FormattedDiagnostic
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 moreAuto Trait Implementations§
impl Freeze for FormattedDiagnostic
impl RefUnwindSafe for FormattedDiagnostic
impl Send for FormattedDiagnostic
impl Sync for FormattedDiagnostic
impl Unpin for FormattedDiagnostic
impl UnsafeUnpin for FormattedDiagnostic
impl UnwindSafe for FormattedDiagnostic
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