Trait swc_css_lints::LintRule

source ·
pub trait LintRule: Debug + Send + Sync {
    // Required method
    fn lint_stylesheet(&mut self, stylesheet: &Stylesheet);
}
Expand description

A lint rule.

§Implementation notes

Must report error to [swc_common::HANDLER]

Required Methods§

source

fn lint_stylesheet(&mut self, stylesheet: &Stylesheet)

Implementations on Foreign Types§

source§

impl<'a, T: 'a + LintRule + ?Sized> LintRule for &'a mut T
where &'a mut T: Debug + Send + Sync,

source§

fn lint_stylesheet(&mut self, stylesheet: &Stylesheet)

source§

impl<R> LintRule for Vec<R>
where R: LintRule,

This preserves the order of errors.

source§

fn lint_stylesheet(&mut self, stylesheet: &Stylesheet)

source§

impl<T: LintRule + ?Sized> LintRule for Box<T>
where Box<T>: Debug + Send + Sync,

source§

fn lint_stylesheet(&mut self, stylesheet: &Stylesheet)

Implementors§