Struct style::style_resolver::ResolvedElementStyles
source · pub struct ResolvedElementStyles {
pub primary: PrimaryStyle,
pub pseudos: EagerPseudoStyles,
}
Expand description
A set of style returned from the resolver machinery.
Fields§
§primary: PrimaryStyle
Primary style.
pseudos: EagerPseudoStyles
Pseudo 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