pub struct GetNodesForSubtreeByStyleParams {
pub nodeId: NodeId,
pub computedStyles: Vec<CSSComputedStyleProperty>,
pub pierce: Option<bool>,
}Expand description
Finds nodes with a given computed style in a subtree.
Fields§
§nodeId: NodeIdNode ID pointing to the root of a subtree.
computedStyles: 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 Default for GetNodesForSubtreeByStyleParams
impl Default for GetNodesForSubtreeByStyleParams
Source§fn default() -> GetNodesForSubtreeByStyleParams
fn default() -> GetNodesForSubtreeByStyleParams
Returns the “default value” for a type. Read more
Source§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
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