pub struct AttributeTracker<'a> {
pub provider: &'a dyn AttributeProvider,
pub references: Box<PrecomputedHashSet<LocalName>>,
}Expand description
A data structure to keep track of the names queried from a provider.
Fields§
§provider: &'a dyn AttributeProviderThe element that queries for attributes.
references: Box<PrecomputedHashSet<LocalName>>The set of attributes we have queried.
Implementations§
Source§impl<'a> AttributeTracker<'a>
impl<'a> AttributeTracker<'a>
Sourcepub fn new(provider: &'a dyn AttributeProvider) -> Self
pub fn new(provider: &'a dyn AttributeProvider) -> Self
Construct a new attribute tracker trivially.
Sourcepub fn finalize(self) -> Box<PrecomputedHashSet<LocalName>>
pub fn finalize(self) -> Box<PrecomputedHashSet<LocalName>>
Extract the queried references and consume self
Auto Trait Implementations§
impl<'a> Freeze for AttributeTracker<'a>
impl<'a> !RefUnwindSafe for AttributeTracker<'a>
impl<'a> !Send for AttributeTracker<'a>
impl<'a> !Sync for AttributeTracker<'a>
impl<'a> Unpin for AttributeTracker<'a>
impl<'a> !UnwindSafe for AttributeTracker<'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> 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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert