Struct style::data::ElementStyles
[−]
[src]
pub struct ElementStyles {
pub primary: Option<Arc<ComputedValues>>,
pub pseudos: EagerPseudoStyles,
}The styles associated with a node, including the styles for any pseudo-elements.
Fields
primary: Option<Arc<ComputedValues>>
The element's style.
pseudos: EagerPseudoStyles
A list of the styles for the element's eagerly-cascaded pseudo-elements.
Methods
impl ElementStyles[src]
pub fn get_primary(&self) -> Option<&Arc<ComputedValues>>[src]
Returns the primary style.
pub fn primary(&self) -> &Arc<ComputedValues>[src]
Returns the primary style. Panic if no style available.
pub fn is_display_none(&self) -> bool[src]
Whether this element display value is none.
Trait Implementations
impl Clone for ElementStyles[src]
fn clone(&self) -> ElementStyles[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for ElementStyles[src]
fn default() -> ElementStyles[src]
Returns the "default value" for a type. Read more
impl Debug for ElementStyles[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<ResolvedElementStyles> for ElementStyles[src]
fn from(r: ResolvedElementStyles) -> ElementStyles[src]
Performs the conversion.