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§
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>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".