pub struct HtmlLinter { /* private fields */ }
Implementations§
Source§impl HtmlLinter
impl HtmlLinter
pub fn new(rules: Vec<Rule>, options: Option<LinterOptions>) -> Self
pub fn lint(&self, html: &str) -> Result<Vec<LintResult>, LinterError>
pub fn from_json( json: &str, options: Option<LinterOptions>, ) -> Result<Self, LinterError>
pub fn from_json_file( path: &str, options: Option<LinterOptions>, ) -> Result<Self, LinterError>
pub fn get_rules(&self) -> Vec<Rule>
Auto Trait Implementations§
impl Freeze for HtmlLinter
impl RefUnwindSafe for HtmlLinter
impl Send for HtmlLinter
impl Sync for HtmlLinter
impl Unpin for HtmlLinter
impl UnwindSafe for HtmlLinter
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