[][src]Trait ra_ap_hir::diagnostics::Diagnostic

pub trait Diagnostic: 'static + Send + Sync + Any + Debug {
    fn code(&self) -> DiagnosticCode;
fn message(&self) -> String;
fn display_source(&self) -> InFile<SyntaxNodePtr>;
fn as_any(&self) -> &(dyn Any + 'static + Send); fn is_experimental(&self) -> bool { ... } }

Required methods

fn code(&self) -> DiagnosticCode

fn message(&self) -> String

fn display_source(&self) -> InFile<SyntaxNodePtr>

Used in highlighting and related purposes

fn as_any(&self) -> &(dyn Any + 'static + Send)

Loading content...

Provided methods

fn is_experimental(&self) -> bool

Loading content...

Implementations on Foreign Types

impl Diagnostic for BreakOutsideOfLoop[src]

impl Diagnostic for MissingUnsafe[src]

impl Diagnostic for MissingPatFields[src]

Loading content...

Implementors

impl Diagnostic for MismatchedArgCount[src]

impl Diagnostic for MissingFields[src]

impl Diagnostic for MissingMatchArms[src]

impl Diagnostic for MissingOkInTailExpr[src]

impl Diagnostic for NoSuchField[src]

impl Diagnostic for UnresolvedModule[src]

Loading content...