Struct style::sharing::StyleSharingTarget
source · pub struct StyleSharingTarget<E: TElement> {
element: E,
validation_data: ValidationData,
}
Expand description
An element we want to test against the style sharing cache.
Fields§
§element: E
§validation_data: ValidationData
Implementations§
source§impl<E: TElement> StyleSharingTarget<E>
impl<E: TElement> StyleSharingTarget<E>
sourcepub fn new(element: E) -> Self
pub fn new(element: E) -> Self
Trivially construct a new StyleSharingTarget to test against the cache.
fn class_list(&mut self) -> &[AtomIdent]
fn part_list(&mut self) -> &[AtomIdent]
sourcefn pres_hints(&mut self) -> &[ApplicableDeclarationBlock]
fn pres_hints(&mut self) -> &[ApplicableDeclarationBlock]
Get the pres hints of this candidate.
sourcefn parent_style_identity(&mut self) -> OpaqueComputedValues
fn parent_style_identity(&mut self) -> OpaqueComputedValues
Get the parent style identity.
fn revalidation_match_results( &mut self, stylist: &Stylist, bloom: &StyleBloom<E>, selector_caches: &mut SelectorCaches, ) -> &RevalidationResult
fn scope_revalidation_results( &mut self, stylist: &Stylist, selector_caches: &mut SelectorCaches, ) -> ScopeRevalidationResult
Attempts to share a style with another node.
sourcepub fn take_validation_data(&mut self) -> ValidationData
pub fn take_validation_data(&mut self) -> ValidationData
Gets the validation data used to match against this target, if any.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for StyleSharingTarget<E>where
E: Freeze,
impl<E> !RefUnwindSafe for StyleSharingTarget<E>
impl<E> Send for StyleSharingTarget<E>where
E: Send,
impl<E> Sync for StyleSharingTarget<E>where
E: Sync,
impl<E> Unpin for StyleSharingTarget<E>where
E: Unpin,
impl<E> !UnwindSafe for StyleSharingTarget<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