Struct rslint_errors::CodeSuggestion [−][src]
pub struct CodeSuggestion {
pub substitution: SuggestionChange,
pub span: FileSpan,
pub applicability: Applicability,
pub msg: String,
pub style: SuggestionStyle,
pub labels: Vec<Range<usize>>,
}
Expand description
A Suggestion that is provided by rslint, and
can be reported to the user, and can be automatically
applied if it has the right Applicability
.
Fields
substitution: SuggestionChange
If the FileId
is None
, it’s in the same file as
his parent.
span: FileSpan
applicability: Applicability
msg: String
style: SuggestionStyle
labels: Vec<Range<usize>>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CodeSuggestion
impl Send for CodeSuggestion
impl Sync for CodeSuggestion
impl Unpin for CodeSuggestion
impl UnwindSafe for CodeSuggestion
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more