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.
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 !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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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