pub struct TableLevelDiagnostic {
pub kind: TableLevelDiagnosticKind,
pub message: String,
pub span: Option<Span>,
}Expand description
A non-fatal diagnostic from table-level extraction.
message is a human-readable description; span carries
the source location when the offending node has one.
Fields§
§kind: TableLevelDiagnosticKind§message: String§span: Option<Span>Source location of the offending token, when available. None when
the originating AST node carries no span.
Trait Implementations§
Source§impl Clone for TableLevelDiagnostic
impl Clone for TableLevelDiagnostic
Source§fn clone(&self) -> TableLevelDiagnostic
fn clone(&self) -> TableLevelDiagnostic
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 moreSource§impl Debug for TableLevelDiagnostic
impl Debug for TableLevelDiagnostic
impl Eq for TableLevelDiagnostic
Source§impl PartialEq for TableLevelDiagnostic
impl PartialEq for TableLevelDiagnostic
Source§fn eq(&self, other: &TableLevelDiagnostic) -> bool
fn eq(&self, other: &TableLevelDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableLevelDiagnostic
Auto Trait Implementations§
impl Freeze for TableLevelDiagnostic
impl RefUnwindSafe for TableLevelDiagnostic
impl Send for TableLevelDiagnostic
impl Sync for TableLevelDiagnostic
impl Unpin for TableLevelDiagnostic
impl UnsafeUnpin for TableLevelDiagnostic
impl UnwindSafe for TableLevelDiagnostic
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