[][src]Trait ra_ap_hir_expand::diagnostics::Diagnostic

pub trait Diagnostic: Any + Send + Sync + Debug + 'static {
    fn code(&self) -> DiagnosticCode;
fn message(&self) -> String;
fn display_source(&self) -> InFile<SyntaxNodePtr>;
fn as_any(&self) -> &(dyn Any + Send + 'static); 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 + Send + 'static)

Loading content...

Provided methods

fn is_experimental(&self) -> bool

Loading content...

Implementors

Loading content...