pub struct Node<'a> { /* private fields */ }Expand description
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
Implementations§
Source§impl<'a> Node<'a>
impl<'a> Node<'a>
pub fn builder( nodeId: NodeId, backendNodeId: BackendNodeId, nodeType: i64, nodeName: impl Into<Cow<'a, str>>, localName: impl Into<Cow<'a, str>>, nodeValue: impl Into<Cow<'a, str>>, ) -> NodeBuilder<'a>
pub fn nodeId(&self) -> &NodeId
pub fn parentId(&self) -> Option<&NodeId>
pub fn backendNodeId(&self) -> &BackendNodeId
pub fn nodeType(&self) -> i64
pub fn nodeName(&self) -> &str
pub fn localName(&self) -> &str
pub fn nodeValue(&self) -> &str
pub fn childNodeCount(&self) -> Option<u64>
pub fn children(&self) -> Option<&[Box<Node<'a>>]>
pub fn attributes(&self) -> Option<&[Cow<'a, str>]>
pub fn documentURL(&self) -> Option<&str>
pub fn baseURL(&self) -> Option<&str>
pub fn publicId(&self) -> Option<&str>
pub fn systemId(&self) -> Option<&str>
pub fn internalSubset(&self) -> Option<&str>
pub fn xmlVersion(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
pub fn pseudoType(&self) -> Option<&PseudoType>
pub fn pseudoIdentifier(&self) -> Option<&str>
pub fn shadowRootType(&self) -> Option<&ShadowRootType>
pub fn frameId(&self) -> Option<&FrameId<'a>>
pub fn contentDocument(&self) -> Option<&Node<'a>>
pub fn shadowRoots(&self) -> Option<&[Box<Node<'a>>]>
pub fn templateContent(&self) -> Option<&Node<'a>>
pub fn pseudoElements(&self) -> Option<&[Box<Node<'a>>]>
pub fn importedDocument(&self) -> Option<&Node<'a>>
pub fn distributedNodes(&self) -> Option<&[BackendNode<'a>]>
pub fn isSVG(&self) -> Option<bool>
pub fn compatibilityMode(&self) -> Option<&CompatibilityMode>
pub fn assignedSlot(&self) -> Option<&BackendNode<'a>>
pub fn isScrollable(&self) -> Option<bool>
pub fn affectedByStartingStyles(&self) -> Option<bool>
pub fn adoptedStyleSheets(&self) -> Option<&[StyleSheetId<'a>]>
pub fn adProvenance(&self) -> Option<&AdProvenance<'a>>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Node<'a>
impl<'de, 'a> Deserialize<'de> for Node<'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 Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'a>
impl<'a> UnwindSafe for Node<'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