pub struct GetNodesForSubtreeByStyleParams<'a> { /* private fields */ }Expand description
Finds nodes with a given computed style in a subtree.
Implementations§
Source§impl<'a> GetNodesForSubtreeByStyleParams<'a>
impl<'a> GetNodesForSubtreeByStyleParams<'a>
Sourcepub fn builder(
node_id: NodeId,
computed_styles: Vec<CSSComputedStyleProperty<'a>>,
) -> GetNodesForSubtreeByStyleParamsBuilder<'a>
pub fn builder( node_id: NodeId, computed_styles: Vec<CSSComputedStyleProperty<'a>>, ) -> GetNodesForSubtreeByStyleParamsBuilder<'a>
Creates a builder for this type with the required parameters:
node_id: Node ID pointing to the root of a subtree.computed_styles: The style to filter nodes by (includes nodes if any of properties matches).
Sourcepub fn computed_styles(&self) -> &[CSSComputedStyleProperty<'a>]
pub fn computed_styles(&self) -> &[CSSComputedStyleProperty<'a>]
The style to filter nodes by (includes nodes if any of properties matches).
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for GetNodesForSubtreeByStyleParams<'a>
impl<'a> CdpCommand<'a> for GetNodesForSubtreeByStyleParams<'a>
Source§impl<'a> Clone for GetNodesForSubtreeByStyleParams<'a>
impl<'a> Clone for GetNodesForSubtreeByStyleParams<'a>
Source§fn clone(&self) -> GetNodesForSubtreeByStyleParams<'a>
fn clone(&self) -> GetNodesForSubtreeByStyleParams<'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 GetNodesForSubtreeByStyleParams<'a>
impl<'a> Debug for GetNodesForSubtreeByStyleParams<'a>
Source§impl<'a> Default for GetNodesForSubtreeByStyleParams<'a>
impl<'a> Default for GetNodesForSubtreeByStyleParams<'a>
Source§fn default() -> GetNodesForSubtreeByStyleParams<'a>
fn default() -> GetNodesForSubtreeByStyleParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for GetNodesForSubtreeByStyleParams<'a>
impl<'de, 'a> Deserialize<'de> for GetNodesForSubtreeByStyleParams<'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 GetNodesForSubtreeByStyleParams<'a>
impl<'a> RefUnwindSafe for GetNodesForSubtreeByStyleParams<'a>
impl<'a> Send for GetNodesForSubtreeByStyleParams<'a>
impl<'a> Sync for GetNodesForSubtreeByStyleParams<'a>
impl<'a> Unpin for GetNodesForSubtreeByStyleParams<'a>
impl<'a> UnsafeUnpin for GetNodesForSubtreeByStyleParams<'a>
impl<'a> UnwindSafe for GetNodesForSubtreeByStyleParams<'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