Trait clippy_utils::sugg::DiagExt
source · pub trait DiagExt<T: LintContext> {
// Required methods
fn suggest_item_with_attr<D: Display + ?Sized>(
&mut self,
cx: &T,
item: Span,
msg: &str,
attr: &D,
applicability: Applicability,
);
fn suggest_prepend_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
new_item: &str,
applicability: Applicability,
);
fn suggest_remove_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
applicability: Applicability,
);
}
Expand description
Convenience extension trait for Diag
.
Required Methods§
sourcefn suggest_item_with_attr<D: Display + ?Sized>(
&mut self,
cx: &T,
item: Span,
msg: &str,
attr: &D,
applicability: Applicability,
)
fn suggest_item_with_attr<D: Display + ?Sized>( &mut self, cx: &T, item: Span, msg: &str, attr: &D, applicability: Applicability, )
sourcefn suggest_prepend_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
new_item: &str,
applicability: Applicability,
)
fn suggest_prepend_item( &mut self, cx: &T, item: Span, msg: &str, new_item: &str, applicability: Applicability, )
sourcefn suggest_remove_item(
&mut self,
cx: &T,
item: Span,
msg: &str,
applicability: Applicability,
)
fn suggest_remove_item( &mut self, cx: &T, item: Span, msg: &str, applicability: Applicability, )
Object Safety§
This trait is not object safe.