[][src]Struct rslint_errors::CodeSuggestion

pub struct CodeSuggestion {
    pub substitution: SuggestionChange,
    pub span: FileSpan,
    pub applicability: Applicability,
    pub msg: String,
    pub style: SuggestionStyle,
    pub labels: Vec<Range<usize>>,
}

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: FileSpanapplicability: Applicabilitymsg: Stringstyle: SuggestionStylelabels: Vec<Range<usize>>

Trait Implementations

impl Clone for CodeSuggestion[src]

impl Debug for CodeSuggestion[src]

impl Eq for CodeSuggestion[src]

impl Hash for CodeSuggestion[src]

impl PartialEq<CodeSuggestion> for CodeSuggestion[src]

impl StructuralEq for CodeSuggestion[src]

impl StructuralPartialEq for CodeSuggestion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.