pub struct GetNodesForSubtreeByStyleParams {
pub node_id: Box<NodeId>,
pub computed_styles: Vec<CssComputedStyleProperty>,
pub pierce: Option<bool>,
}Expand description
Finds nodes with a given computed style in a subtree. getNodesForSubtreeByStyle
Fields§
§node_id: Box<NodeId>Node ID pointing to the root of a subtree.
computed_styles: Vec<CssComputedStyleProperty>The style to filter nodes by (includes nodes if any of properties matches).
pierce: Option<bool>Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
Implementations§
Trait Implementations§
Source§impl Clone for GetNodesForSubtreeByStyleParams
impl Clone for GetNodesForSubtreeByStyleParams
Source§fn clone(&self) -> GetNodesForSubtreeByStyleParams
fn clone(&self) -> GetNodesForSubtreeByStyleParams
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 moreSource§impl<'de> Deserialize<'de> for GetNodesForSubtreeByStyleParams
impl<'de> Deserialize<'de> for GetNodesForSubtreeByStyleParams
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
Source§impl PartialEq for GetNodesForSubtreeByStyleParams
impl PartialEq for GetNodesForSubtreeByStyleParams
Source§fn eq(&self, other: &GetNodesForSubtreeByStyleParams) -> bool
fn eq(&self, other: &GetNodesForSubtreeByStyleParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetNodesForSubtreeByStyleParams
Auto Trait Implementations§
impl Freeze for GetNodesForSubtreeByStyleParams
impl RefUnwindSafe for GetNodesForSubtreeByStyleParams
impl Send for GetNodesForSubtreeByStyleParams
impl Sync for GetNodesForSubtreeByStyleParams
impl Unpin for GetNodesForSubtreeByStyleParams
impl UnsafeUnpin for GetNodesForSubtreeByStyleParams
impl UnwindSafe for GetNodesForSubtreeByStyleParams
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