Struct deno_doc::DocDiagnostic
source · pub struct DocDiagnostic {
pub location: Location,
pub kind: DocDiagnosticKind,
pub text_info: SourceTextInfo,
}
Fields§
§location: Location
§kind: DocDiagnosticKind
§text_info: SourceTextInfo
Trait Implementations§
source§impl Clone for DocDiagnostic
impl Clone for DocDiagnostic
source§fn clone(&self) -> DocDiagnostic
fn clone(&self) -> DocDiagnostic
Returns a copy 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 moresource§impl Debug for DocDiagnostic
impl Debug for DocDiagnostic
source§impl Diagnostic for DocDiagnostic
impl Diagnostic for DocDiagnostic
source§fn level(&self) -> DiagnosticLevel
fn level(&self) -> DiagnosticLevel
The level of the diagnostic.
source§fn code(&self) -> Cow<'_, str>
fn code(&self) -> Cow<'_, str>
The diagnostic code, like
no-explicit-any
or ban-untagged-ignore
.source§fn location(&self) -> DiagnosticLocation<'_>
fn location(&self) -> DiagnosticLocation<'_>
The location this diagnostic is associated with.
source§fn snippet(&self) -> Option<DiagnosticSnippet<'_>>
fn snippet(&self) -> Option<DiagnosticSnippet<'_>>
A snippet showing the source code associated with the diagnostic.
source§fn snippet_fixed(&self) -> Option<DiagnosticSnippet<'_>>
fn snippet_fixed(&self) -> Option<DiagnosticSnippet<'_>>
A snippet showing how the diagnostic can be fixed.
fn info(&self) -> Cow<'_, [Cow<'_, str>]>
source§fn docs_url(&self) -> Option<Cow<'_, str>>
fn docs_url(&self) -> Option<Cow<'_, str>>
An optional URL to the documentation for the diagnostic.
fn display(&self) -> DiagnosticDisplay<'_, Self>
Auto Trait Implementations§
impl RefUnwindSafe for DocDiagnostic
impl Send for DocDiagnostic
impl Sync for DocDiagnostic
impl Unpin for DocDiagnostic
impl UnwindSafe for DocDiagnostic
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