pub struct TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: TElement,
P: InvalidationProcessor<'b, 'c, E> + 'a,
'b: 'a,{ /* private fields */ }Expand description
The struct that takes care of encapsulating all the logic on where and how element styles need to be invalidated.
Implementations§
Source§impl<'a, 'b, 'c, E, P> TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: TElement,
P: InvalidationProcessor<'b, 'c, E> + 'a,
'b: 'a,
impl<'a, 'b, 'c, E, P> TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: TElement,
P: InvalidationProcessor<'b, 'c, E> + 'a,
'b: 'a,
Sourcepub fn new(
element: E,
stack_limit_checker: Option<&'a StackLimitChecker>,
processor: &'a mut P,
) -> Self
pub fn new( element: E, stack_limit_checker: Option<&'a StackLimitChecker>, processor: &'a mut P, ) -> Self
Trivially constructs a new TreeStyleInvalidator.
Sourcepub fn invalidate(self) -> InvalidationResult
pub fn invalidate(self) -> InvalidationResult
Perform the invalidation pass.
Auto Trait Implementations§
impl<'a, 'b, 'c, E, P> Freeze for TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: Freeze,
impl<'a, 'b, 'c, E, P> RefUnwindSafe for TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, 'b, 'c, E, P> Send for TreeStyleInvalidator<'a, 'b, 'c, E, P>
impl<'a, 'b, 'c, E, P> Sync for TreeStyleInvalidator<'a, 'b, 'c, E, P>
impl<'a, 'b, 'c, E, P> Unpin for TreeStyleInvalidator<'a, 'b, 'c, E, P>where
E: Unpin,
impl<'a, 'b, 'c, E, P> !UnwindSafe for TreeStyleInvalidator<'a, 'b, 'c, E, P>
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