pub struct GetNodesForSubtreeByStyleBuilder { /* private fields */ }Expand description
Builder for GetNodesForSubtreeByStyle.
Implementations§
Source§impl GetNodesForSubtreeByStyleBuilder
impl GetNodesForSubtreeByStyleBuilder
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Node ID pointing to the root of a subtree.
Sourcepub fn computed_styles<VALUE: Into<Vec<CssComputedStyleProperty>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn computed_styles<VALUE: Into<Vec<CssComputedStyleProperty>>>( &mut self, value: VALUE, ) -> &mut Self
The style to filter nodes by (includes nodes if any of properties matches).
Sourcepub fn pierce<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn pierce<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
Sourcepub fn build(
&self,
) -> Result<GetNodesForSubtreeByStyle, GetNodesForSubtreeByStyleBuilderError>
pub fn build( &self, ) -> Result<GetNodesForSubtreeByStyle, GetNodesForSubtreeByStyleBuilderError>
Trait Implementations§
Source§impl Clone for GetNodesForSubtreeByStyleBuilder
impl Clone for GetNodesForSubtreeByStyleBuilder
Source§fn clone(&self) -> GetNodesForSubtreeByStyleBuilder
fn clone(&self) -> GetNodesForSubtreeByStyleBuilder
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 GetNodesForSubtreeByStyleBuilder
impl RefUnwindSafe for GetNodesForSubtreeByStyleBuilder
impl Send for GetNodesForSubtreeByStyleBuilder
impl Sync for GetNodesForSubtreeByStyleBuilder
impl Unpin for GetNodesForSubtreeByStyleBuilder
impl UnsafeUnpin for GetNodesForSubtreeByStyleBuilder
impl UnwindSafe for GetNodesForSubtreeByStyleBuilder
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