pub struct GetNodesForSubtreeByStyleCommand { /* private fields */ }Available on crate features
DOM and Runtime and experimental only.Expand description
Finds nodes with a given computed style in a subtree.
Implementations§
Source§impl GetNodesForSubtreeByStyleCommand
impl GetNodesForSubtreeByStyleCommand
pub fn new( node_id: NodeId, computed_styles: Vec<CssComputedStyleProperty>, pierce: Option<bool>, ) -> Self
Sourcepub fn computed_styles(&self) -> &[CssComputedStyleProperty]
pub fn computed_styles(&self) -> &[CssComputedStyleProperty]
The style to filter nodes by (includes nodes if any of properties matches).
Trait Implementations§
Source§impl Clone for GetNodesForSubtreeByStyleCommand
impl Clone for GetNodesForSubtreeByStyleCommand
Source§fn clone(&self) -> GetNodesForSubtreeByStyleCommand
fn clone(&self) -> GetNodesForSubtreeByStyleCommand
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 GetNodesForSubtreeByStyleCommand
impl<'de> Deserialize<'de> for GetNodesForSubtreeByStyleCommand
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 GetNodesForSubtreeByStyleCommand
impl RefUnwindSafe for GetNodesForSubtreeByStyleCommand
impl Send for GetNodesForSubtreeByStyleCommand
impl Sync for GetNodesForSubtreeByStyleCommand
impl Unpin for GetNodesForSubtreeByStyleCommand
impl UnwindSafe for GetNodesForSubtreeByStyleCommand
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