pub struct Validator { /* private fields */ }Expand description
HTML validator.
Implementations§
Source§impl Validator
impl Validator
Sourcepub fn validate(self, doc: &Document) -> Vec<ValidationError>
pub fn validate(self, doc: &Document) -> Vec<ValidationError>
Validate a document.
Sourcepub fn validate_nodes(self, nodes: &[Node]) -> Vec<ValidationError>
pub fn validate_nodes(self, nodes: &[Node]) -> Vec<ValidationError>
Validate a list of nodes (for fragments).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
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