pub struct GetMatchedStylesForNodeReturnBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl GetMatchedStylesForNodeReturnBuilder
impl GetMatchedStylesForNodeReturnBuilder
Sourcepub fn inline_style(&mut self, v: CssStyle) -> &mut Self
pub fn inline_style(&mut self, v: CssStyle) -> &mut Self
Inline style for the specified DOM node.
Sourcepub fn attributes_style(&mut self, v: CssStyle) -> &mut Self
pub fn attributes_style(&mut self, v: CssStyle) -> &mut Self
Attribute-defined element style (e.g. resulting from “width=20 height=100%”).
Sourcepub fn matched_css_rules(&mut self, v: Vec<RuleMatch>) -> &mut Self
pub fn matched_css_rules(&mut self, v: Vec<RuleMatch>) -> &mut Self
CSS rules matching this node, from all applicable stylesheets.
Sourcepub fn pseudo_elements(&mut self, v: Vec<PseudoElementMatches>) -> &mut Self
pub fn pseudo_elements(&mut self, v: Vec<PseudoElementMatches>) -> &mut Self
Pseudo style matches for this node.
Sourcepub fn inherited(&mut self, v: Vec<InheritedStyleEntry>) -> &mut Self
pub fn inherited(&mut self, v: Vec<InheritedStyleEntry>) -> &mut Self
A chain of inherited styles (from the immediate node parent up to the DOM tree root).
Sourcepub fn css_keyframes_rules(&mut self, v: Vec<CssKeyframesRule>) -> &mut Self
pub fn css_keyframes_rules(&mut self, v: Vec<CssKeyframesRule>) -> &mut Self
A list of CSS keyframed animations matching this node.
pub fn build(&mut self) -> Result<GetMatchedStylesForNodeReturn, &'static str>
Trait Implementations§
Source§impl Clone for GetMatchedStylesForNodeReturnBuilder
impl Clone for GetMatchedStylesForNodeReturnBuilder
Source§fn clone(&self) -> GetMatchedStylesForNodeReturnBuilder
fn clone(&self) -> GetMatchedStylesForNodeReturnBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GetMatchedStylesForNodeReturnBuilder
impl RefUnwindSafe for GetMatchedStylesForNodeReturnBuilder
impl Send for GetMatchedStylesForNodeReturnBuilder
impl Sync for GetMatchedStylesForNodeReturnBuilder
impl Unpin for GetMatchedStylesForNodeReturnBuilder
impl UnwindSafe for GetMatchedStylesForNodeReturnBuilder
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