pub struct Auditor<'a> {
pub document: &'a Html,
pub tree: BTreeMap<&'a str, Vec<(ElementRef<'a>, Option<NodeId>)>>,
pub author: StyleSet,
pub locale: &'a str,
}Expand description
The configuration for auditing
Fields§
§document: &'a Htmlthe html document
tree: BTreeMap<&'a str, Vec<(ElementRef<'a>, Option<NodeId>)>>the tree to map to nodes
styles for the audit
locale: &'a strlanguage to get results in
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Auditor<'a>
impl<'a> !RefUnwindSafe for Auditor<'a>
impl<'a> Send for Auditor<'a>
impl<'a> Sync for Auditor<'a>
impl<'a> Unpin for Auditor<'a>
impl<'a> !UnwindSafe for Auditor<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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