pub struct InheritedStyleEntry<'a> { /* private fields */ }Expand description
Inherited CSS rule collection from ancestor node.
Implementations§
Source§impl<'a> InheritedStyleEntry<'a>
impl<'a> InheritedStyleEntry<'a>
Sourcepub fn builder(
matched_css_rules: Vec<RuleMatch<'a>>,
) -> InheritedStyleEntryBuilder<'a>
pub fn builder( matched_css_rules: Vec<RuleMatch<'a>>, ) -> InheritedStyleEntryBuilder<'a>
Creates a builder for this type with the required parameters:
matched_css_rules: Matches of CSS rules matching the ancestor node in the style inheritance chain.
Sourcepub fn inline_style(&self) -> Option<&CSSStyle<'a>>
pub fn inline_style(&self) -> Option<&CSSStyle<'a>>
The ancestor node’s inline style, if any, in the style inheritance chain.
Sourcepub fn matched_css_rules(&self) -> &[RuleMatch<'a>]
pub fn matched_css_rules(&self) -> &[RuleMatch<'a>]
Matches of CSS rules matching the ancestor node in the style inheritance chain.
Trait Implementations§
Source§impl<'a> Clone for InheritedStyleEntry<'a>
impl<'a> Clone for InheritedStyleEntry<'a>
Source§fn clone(&self) -> InheritedStyleEntry<'a>
fn clone(&self) -> InheritedStyleEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InheritedStyleEntry<'a>
impl<'a> Debug for InheritedStyleEntry<'a>
Source§impl<'a> Default for InheritedStyleEntry<'a>
impl<'a> Default for InheritedStyleEntry<'a>
Source§fn default() -> InheritedStyleEntry<'a>
fn default() -> InheritedStyleEntry<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for InheritedStyleEntry<'a>
impl<'de, 'a> Deserialize<'de> for InheritedStyleEntry<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for InheritedStyleEntry<'a>
impl<'a> RefUnwindSafe for InheritedStyleEntry<'a>
impl<'a> Send for InheritedStyleEntry<'a>
impl<'a> Sync for InheritedStyleEntry<'a>
impl<'a> Unpin for InheritedStyleEntry<'a>
impl<'a> UnsafeUnpin for InheritedStyleEntry<'a>
impl<'a> UnwindSafe for InheritedStyleEntry<'a>
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