struct Collector<'a, 'b: 'a, 'selectors: 'a, E>where
E: TElement,{Show 15 fields
element: E,
wrapper: ElementWrapper<'b, E>,
snapshot: &'a Snapshot,
matching_context: &'a mut MatchingContext<'b, E::Impl>,
lookup_element: E,
removed_id: Option<&'a Atom>,
added_id: Option<&'a Atom>,
classes_removed: &'a SmallVec<[Atom; 8]>,
classes_added: &'a SmallVec<[Atom; 8]>,
custom_states_removed: &'a SmallVec<[AtomIdent; 8]>,
custom_states_added: &'a SmallVec<[AtomIdent; 8]>,
state_changes: ElementState,
descendant_invalidations: &'a mut DescendantInvalidationLists<'selectors>,
sibling_invalidations: &'a mut InvalidationVector<'selectors>,
invalidates_self: bool,
}Expand description
The collector implementation.
Fields§
§element: E§wrapper: ElementWrapper<'b, E>§snapshot: &'a Snapshot§matching_context: &'a mut MatchingContext<'b, E::Impl>§lookup_element: E§removed_id: Option<&'a Atom>§added_id: Option<&'a Atom>§classes_removed: &'a SmallVec<[Atom; 8]>§classes_added: &'a SmallVec<[Atom; 8]>§custom_states_removed: &'a SmallVec<[AtomIdent; 8]>§custom_states_added: &'a SmallVec<[AtomIdent; 8]>§state_changes: ElementState§descendant_invalidations: &'a mut DescendantInvalidationLists<'selectors>§sibling_invalidations: &'a mut InvalidationVector<'selectors>§invalidates_self: boolImplementations§
Source§impl<'a, 'b, 'selectors, E> Collector<'a, 'b, 'selectors, E>where
E: TElement,
'selectors: 'a,
impl<'a, 'b, 'selectors, E> Collector<'a, 'b, 'selectors, E>where
E: TElement,
'selectors: 'a,
fn collect_dependencies_in_invalidation_map( &mut self, map: &'selectors InvalidationMap, )
fn collect_state_dependencies( &mut self, map: &'selectors SelectorMap<StateDependency>, )
Sourcefn check_dependency(&mut self, dependency: &Dependency, set_scope: bool) -> bool
fn check_dependency(&mut self, dependency: &Dependency, set_scope: bool) -> bool
Check whether a dependency should be taken into account.
fn scan_dependency( &mut self, dependency: &'selectors Dependency, set_scope: bool, )
fn note_dependency(&mut self, dependency: &'selectors Dependency)
Sourcefn dependency_may_be_relevant(&self, dependency: &Dependency) -> bool
fn dependency_may_be_relevant(&self, dependency: &Dependency) -> bool
Returns whether dependency may cause us to invalidate the style of
more elements than what we’ve already invalidated.
Auto Trait Implementations§
impl<'a, 'b, 'selectors, E> !Freeze for Collector<'a, 'b, 'selectors, E>
impl<'a, 'b, 'selectors, E> !RefUnwindSafe for Collector<'a, 'b, 'selectors, E>
impl<'a, 'b, 'selectors, E> !Send for Collector<'a, 'b, 'selectors, E>
impl<'a, 'b, 'selectors, E> !Sync for Collector<'a, 'b, 'selectors, E>
impl<'a, 'b, 'selectors, E> Unpin for Collector<'a, 'b, 'selectors, E>where
E: Unpin,
impl<'a, 'b, 'selectors, E> !UnwindSafe for Collector<'a, 'b, 'selectors, E>
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