pub struct GetLocationForSelectorParams {
pub style_sheet_id: StyleSheetId,
pub selector_text: String,
}Expand description
Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet. getLocationForSelector
Fields§
§style_sheet_id: StyleSheetId§selector_text: StringImplementations§
Source§impl GetLocationForSelectorParams
impl GetLocationForSelectorParams
pub fn builder() -> GetLocationForSelectorParamsBuilder
Source§impl GetLocationForSelectorParams
impl GetLocationForSelectorParams
pub const IDENTIFIER: &'static str = "CSS.getLocationForSelector"
Trait Implementations§
Source§impl Clone for GetLocationForSelectorParams
impl Clone for GetLocationForSelectorParams
Source§fn clone(&self) -> GetLocationForSelectorParams
fn clone(&self) -> GetLocationForSelectorParams
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 Debug for GetLocationForSelectorParams
impl Debug for GetLocationForSelectorParams
Source§impl<'de> Deserialize<'de> for GetLocationForSelectorParams
impl<'de> Deserialize<'de> for GetLocationForSelectorParams
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 Method for GetLocationForSelectorParams
impl Method for GetLocationForSelectorParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl PartialEq for GetLocationForSelectorParams
impl PartialEq for GetLocationForSelectorParams
Source§fn eq(&self, other: &GetLocationForSelectorParams) -> bool
fn eq(&self, other: &GetLocationForSelectorParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetLocationForSelectorParams
Auto Trait Implementations§
impl Freeze for GetLocationForSelectorParams
impl RefUnwindSafe for GetLocationForSelectorParams
impl Send for GetLocationForSelectorParams
impl Sync for GetLocationForSelectorParams
impl Unpin for GetLocationForSelectorParams
impl UnwindSafe for GetLocationForSelectorParams
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