pub struct ResolvedElementStyles {
pub primary: PrimaryStyle,
pub pseudos: EagerPseudoStyles,
}Expand description
A set of style returned from the resolver machinery.
Fields§
§primary: PrimaryStylePrimary style.
pseudos: EagerPseudoStylesPseudo styles.
Implementations§
Source§impl ResolvedElementStyles
impl ResolvedElementStyles
Sourcepub fn primary_style(&self) -> &Arc<ComputedValues>
pub fn primary_style(&self) -> &Arc<ComputedValues>
Convenience accessor for the primary style.
Sourcepub fn primary_style_mut(&mut self) -> &mut Arc<ComputedValues>
pub fn primary_style_mut(&mut self) -> &mut Arc<ComputedValues>
Convenience mutable accessor for the style.
Sourcepub fn may_have_starting_style(&self) -> bool
pub fn may_have_starting_style(&self) -> bool
Returns true if this element may have starting style rules.
Trait Implementations§
Source§impl From<ResolvedElementStyles> for ElementStyles
impl From<ResolvedElementStyles> for ElementStyles
Source§fn from(r: ResolvedElementStyles) -> ElementStyles
fn from(r: ResolvedElementStyles) -> ElementStyles
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolvedElementStyles
impl !RefUnwindSafe for ResolvedElementStyles
impl Send for ResolvedElementStyles
impl Sync for ResolvedElementStyles
impl Unpin for ResolvedElementStyles
impl !UnwindSafe for ResolvedElementStyles
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