Skip to main content

ErrorInfo

Trait ErrorInfo 

Source
pub trait ErrorInfo {
    // Required methods
    fn rule_id(&self) -> &'static str;
    fn phase(&self) -> Phase;
    fn doc_anchor(&self) -> &'static str;
    fn summary(&self) -> Cow<'static, str>;
    fn path(&self) -> Option<Cow<'static, str>>;
    fn fix(&self) -> Option<Cow<'static, str>>;
}

Required Methods§

Source

fn rule_id(&self) -> &'static str

Source

fn phase(&self) -> Phase

Source

fn doc_anchor(&self) -> &'static str

Source

fn summary(&self) -> Cow<'static, str>

Source

fn path(&self) -> Option<Cow<'static, str>>

Source

fn fix(&self) -> Option<Cow<'static, str>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§