pub struct CSSLinter { /* private fields */ }Expand description
CSS linter with comprehensive rules
Implementations§
Source§impl CSSLinter
impl CSSLinter
Sourcepub fn new(config: LinterConfig) -> Self
pub fn new(config: LinterConfig) -> Self
Create new CSS linter
Sourcepub fn lint_css(
&self,
css: &str,
options: &LintOptions,
) -> Result<LintResult, AdvancedFeatureError>
pub fn lint_css( &self, css: &str, options: &LintOptions, ) -> Result<LintResult, AdvancedFeatureError>
Lint CSS with comprehensive rules
Sourcepub fn fix_css(
&self,
css: &str,
fixes: &[LintFix],
) -> Result<String, AdvancedFeatureError>
pub fn fix_css( &self, css: &str, fixes: &[LintFix], ) -> Result<String, AdvancedFeatureError>
Auto-fix CSS issues
Sourcepub fn get_suggestions(
&self,
css: &str,
) -> Result<Vec<LintSuggestion>, AdvancedFeatureError>
pub fn get_suggestions( &self, css: &str, ) -> Result<Vec<LintSuggestion>, AdvancedFeatureError>
Get linting suggestions
Auto Trait Implementations§
impl Freeze for CSSLinter
impl RefUnwindSafe for CSSLinter
impl Send for CSSLinter
impl Sync for CSSLinter
impl Unpin for CSSLinter
impl UnwindSafe for CSSLinter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more