Skip to main content

AsDomNode

Trait AsDomNode 

Source
pub trait AsDomNode: Sealed {
    // Provided methods
    fn to_dom_node(&self) -> DomNode { ... }
    fn node_type(&self) -> NodeType { ... }
    fn parent_node(&self) -> Option<DomNode> { ... }
}
Expand description

Behavior related to DOM nodes.

Provided Methods§

Source

fn to_dom_node(&self) -> DomNode

Convert this type into a DomNode.

Source

fn node_type(&self) -> NodeType

Get the Node’s type.

Source

fn parent_node(&self) -> Option<DomNode>

Get the Node’s parent.

Implementors§