[][src]Struct rslint_core::LintResult

pub struct LintResult<'s> {
    pub parser_diagnostics: Vec<Diagnostic>,
    pub store: &'s CstRuleStore,
    pub rule_diagnostics: HashMap<&'static str, Vec<Diagnostic>>,
    pub directive_diagnostics: Vec<Diagnostic>,
}

The result of linting a file.

Fields

parser_diagnostics: Vec<Diagnostic>store: &'s CstRuleStorerule_diagnostics: HashMap<&'static str, Vec<Diagnostic>>directive_diagnostics: Vec<Diagnostic>

Implementations

impl<'_> LintResult<'_>[src]

pub fn diagnostics(&self) -> impl Iterator<Item = &Diagnostic>[src]

Get all of the diagnostics thrown during linting, in the order of parser diagnostics, then the diagnostics of each rule sequentially.

pub fn outcome(&self) -> Outcome[src]

The overall outcome of linting this file (failure, warning, success, etc)

Trait Implementations

impl<'s> Debug for LintResult<'s>[src]

Auto Trait Implementations

impl<'s> !RefUnwindSafe for LintResult<'s>

impl<'s> Send for LintResult<'s>

impl<'s> Sync for LintResult<'s>

impl<'s> Unpin for LintResult<'s>

impl<'s> !UnwindSafe for LintResult<'s>

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, 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.