Struct ParentNode

Source
pub struct ParentNode(/* private fields */);

Implementations§

Source§

impl ParentNode

Source

pub fn replace_children(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn query_selector_all<E: JsCast + AsRef<Node> + Into<Node>>( &self, selectors: &dyn ToJs<JsString>, ) -> NodeListOf<E>

Source

pub fn query_selector<E: JsCast + AsRef<Element> + Into<Element>>( &self, selectors: &dyn ToJs<JsString>, ) -> JsNullable<E>

Source

pub fn prepend(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn append(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn get_last_element_child(&self) -> JsNullable<Element>

Source

pub fn set_last_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_first_element_child(&self) -> JsNullable<Element>

Source

pub fn set_first_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_children(&self) -> HTMLCollection

Source

pub fn set_children(&self, value: &HTMLCollection)

Source

pub fn get_child_element_count(&self) -> JsNumber

Source

pub fn set_child_element_count(&self, value: &dyn ToJs<JsNumber>)

Methods from Deref<Target = Node>§

Source

pub fn normalize(&self) -> JsNullish

Source

pub fn has_child_nodes(&self) -> JsBoolean

Source

pub fn remove_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, child: &dyn ToJs<T>, ) -> T

Source

pub fn lookup_prefix( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn lookup_namespace_uri( &self, prefix: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn is_same_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_equal_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_default_namespace( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsBoolean

Source

pub fn get_root_node( &self, options: &dyn ToJs<JsNullable<GetRootNodeOptions>>, ) -> Node

Source

pub fn contains(&self, other: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn compare_document_position(&self, other: &Node) -> JsNumber

Source

pub fn clone_node(&self, deep: &dyn ToJs<JsNullable<JsBoolean>>) -> Node

Source

pub fn append_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, ) -> T

Source

pub fn replace_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &Node, child: &dyn ToJs<T>, ) -> T

Source

pub fn insert_before<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, child: &dyn ToJs<JsNullable<Node>>, ) -> T

Source

pub fn get_document__position__implementation__specific(&self) -> JsNumber

Source

pub fn set_document__position__implementation__specific( &self, value: &dyn ToJs<JsNumber>, )

Source

pub fn get_document__position__contained__by(&self) -> JsNumber

Source

pub fn set_document__position__contained__by(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__contains(&self) -> JsNumber

Source

pub fn set_document__position__contains(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__following(&self) -> JsNumber

Source

pub fn set_document__position__following(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__preceding(&self) -> JsNumber

Source

pub fn set_document__position__preceding(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__disconnected(&self) -> JsNumber

Source

pub fn set_document__position__disconnected(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_notation__node(&self) -> JsNumber

Source

pub fn set_notation__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__fragment__node(&self) -> JsNumber

Source

pub fn set_document__fragment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__type__node(&self) -> JsNumber

Source

pub fn set_document__type__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__node(&self) -> JsNumber

Source

pub fn set_document__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_comment__node(&self) -> JsNumber

Source

pub fn set_comment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_processing__instruction__node(&self) -> JsNumber

Source

pub fn set_processing__instruction__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__node(&self) -> JsNumber

Source

pub fn set_entity__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__reference__node(&self) -> JsNumber

Source

pub fn set_entity__reference__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_cdata__section__node(&self) -> JsNumber

Source

pub fn set_cdata__section__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text__node(&self) -> JsNumber

Source

pub fn set_text__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_attribute__node(&self) -> JsNumber

Source

pub fn set_attribute__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_element__node(&self) -> JsNumber

Source

pub fn set_element__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text_content(&self) -> JsNullable<JsString>

Source

pub fn set_text_content(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_previous_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_previous_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_parent_node(&self) -> JsNullable<ParentNode>

Source

pub fn set_parent_node(&self, value: &dyn ToJs<JsNullable<ParentNode>>)

Source

pub fn get_parent_element(&self) -> JsNullable<HTMLElement>

Source

pub fn set_parent_element(&self, value: &dyn ToJs<JsNullable<HTMLElement>>)

Source

pub fn get_owner_document(&self) -> JsNullable<Document>

Source

pub fn set_owner_document(&self, value: &dyn ToJs<JsNullable<Document>>)

Source

pub fn get_node_value(&self) -> JsNullable<JsString>

Source

pub fn set_node_value(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_node_type(&self) -> JsNumber

Source

pub fn set_node_type(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_node_name(&self) -> JsString

Source

pub fn set_node_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_next_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_next_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_last_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_last_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_is_connected(&self) -> JsBoolean

Source

pub fn set_is_connected(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_first_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_first_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_child_nodes(&self) -> NodeListOf<ChildNode>

Source

pub fn set_child_nodes(&self, value: &dyn ToJs<NodeListOf<ChildNode>>)

Source

pub fn get_base_uri(&self) -> JsString

Source

pub fn set_base_uri(&self, value: &dyn ToJs<JsString>)

Methods from Deref<Target = EventTarget>§

Source

pub fn dispatch_event(&self, event: &Event) -> JsBoolean

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Methods from Deref<Target = JsObject>§

Source

pub fn js_get_field(&self, property: &dyn UseInJsCode) -> JsValue

Get a field value of in this object.

WSDOM provides built-in getters so you should use that instead when possible.

Use js_get_field only when needed

fn example(browser: Browser) {
    // you can get `window["location"]["href"]` like this
    let href: JsValue = wsdom::dom::location(&browser).js_get_field(&"href");

    // but you should use built-in getters instead
    let href: JsString = wsdom::dom::location(&browser).get_href();
}
Source

pub fn js_set_field(&self, property: &dyn UseInJsCode, value: &dyn UseInJsCode)

Set a field value of in this object.

WSDOM provides built-in setters so you should use that instead when possible.

Use js_set_field only when needed

fn example(browser: Browser) {
    // you can set `window["location"]["href"]` like this
    wsdom::dom::location(&browser).js_set_field(&"href", &"https://example.com/");

    // but you should use built-in setters instead
    wsdom::dom::location(&browser).set_href(&"https://example.com");
}
Source

pub fn js_call_method<'a>( &'a self, method_name: &'a str, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call a method on this object.

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

fn example(browser: &Browser) {
    let console = wsdom::dom::console(browser);
    // you can call console.log like this
    console.js_call_method("log", [&"hello" as &_], false);
     
    // but the better way is to use
    wsdom::dom::console(&browser).log(&[&"Hello" as &_]);
}

Be aware that the first argument (method_name) is NOT escaped.

Set last_arg_variadic to true if you want to “spread” the last argument as obj.method(arg1, arg2, ...arg3).

Source

pub fn js_call_self<'a>( &'a self, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call this object: obj().

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

Methods from Deref<Target = JsValue>§

Source

pub fn browser(&self) -> &Browser

Source

pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>

Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.

§use wsdom::dom::Browser
§use wsdom::dom::HTMLInputElement;

async fn example(input: &HTMLInputElement) { let _val = input.get_value().retrieve_json().await; }

Trait Implementations§

Source§

impl AsRef<EventTarget> for ParentNode

Source§

fn as_ref(&self) -> &EventTarget

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsObject> for ParentNode

Source§

fn as_ref(&self) -> &JsObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsValue> for ParentNode

Source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Node> for ParentNode

Source§

fn as_ref(&self) -> &Node

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for Document

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for DocumentFragment

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for Element

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLAnchorElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLAreaElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLAudioElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLBRElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLBodyElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLButtonElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLCanvasElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDListElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDataElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDataListElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDetailsElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDialogElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDirectoryElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDivElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLDocument

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLEmbedElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLFieldSetElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLFontElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLFormElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLFrameElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLFrameSetElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLHRElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLHeadElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLHeadingElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLHtmlElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLIFrameElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLImageElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLInputElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLLIElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLLabelElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLLegendElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLLinkElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMapElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMarqueeElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMediaElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMenuElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMetaElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLMeterElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLModElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLOListElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLObjectElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLOptGroupElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLOptionElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLOutputElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLParagraphElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLParamElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLPictureElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLPreElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLProgressElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLQuoteElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLScriptElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLSelectElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLSlotElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLSourceElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLSpanElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLStyleElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableCaptionElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableCellElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableColElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableDataCellElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableHeaderCellElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableRowElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTableSectionElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTemplateElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTextAreaElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTimeElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTitleElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLTrackElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLUListElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLUnknownElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLVideoElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for MathMLElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for ParentNode

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGAElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGAnimateElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGAnimateMotionElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGAnimateTransformElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGAnimationElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGCircleElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGClipPathElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGComponentTransferFunctionElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGDefsElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGDescElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGEllipseElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEBlendElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEColorMatrixElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEComponentTransferElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFECompositeElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEConvolveMatrixElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEDiffuseLightingElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEDisplacementMapElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEDistantLightElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEDropShadowElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEFloodElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEFuncAElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEFuncBElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEFuncGElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEFuncRElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEGaussianBlurElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEImageElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEMergeElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEMergeNodeElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEMorphologyElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEOffsetElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFEPointLightElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFESpecularLightingElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFESpotLightElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFETileElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFETurbulenceElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGFilterElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGForeignObjectElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGGElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGGeometryElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGGradientElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGGraphicsElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGImageElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGLineElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGLinearGradientElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGMPathElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGMarkerElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGMaskElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGMetadataElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGPathElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGPatternElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGPolygonElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGPolylineElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGRadialGradientElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGRectElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGSVGElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGScriptElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGSetElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGStopElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGStyleElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGSwitchElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGSymbolElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTSpanElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTextContentElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTextElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTextPathElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTextPositioningElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGTitleElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGUseElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for SVGViewElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for ShadowRoot

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for XMLDocument

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for ParentNode

Source§

fn clone(&self) -> ParentNode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Deref for ParentNode

Source§

type Target = Node

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Into<EventTarget> for ParentNode

Source§

fn into(self) -> EventTarget

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsObject> for ParentNode

Source§

fn into(self) -> JsObject

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for ParentNode

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<Node> for ParentNode

Source§

fn into(self) -> Node

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for Document

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for DocumentFragment

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for Element

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLAnchorElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLAreaElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLAudioElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLBRElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLBaseElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLBodyElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLButtonElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLCanvasElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDListElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDataElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDataListElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDetailsElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDialogElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDirectoryElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDivElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLDocument

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLEmbedElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLFieldSetElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLFontElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLFormElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLFrameElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLFrameSetElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLHRElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLHeadElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLHeadingElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLHtmlElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLIFrameElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLImageElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLInputElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLLIElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLLabelElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLLegendElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLLinkElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMapElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMarqueeElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMediaElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMenuElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMetaElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLMeterElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLModElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLOListElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLObjectElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLOptGroupElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLOptionElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLOutputElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLParagraphElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLParamElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLPictureElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLPreElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLProgressElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLQuoteElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLScriptElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLSelectElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLSlotElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLSourceElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLSpanElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLStyleElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableCaptionElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableCellElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableColElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableDataCellElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableHeaderCellElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableRowElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTableSectionElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTemplateElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTextAreaElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTimeElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTitleElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLTrackElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLUListElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLUnknownElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLVideoElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for MathMLElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGAElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGAnimateElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGAnimateMotionElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGAnimateTransformElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGAnimationElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGCircleElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGClipPathElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGComponentTransferFunctionElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGDefsElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGDescElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGEllipseElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEBlendElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEColorMatrixElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEComponentTransferElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFECompositeElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEConvolveMatrixElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEDiffuseLightingElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEDisplacementMapElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEDistantLightElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEDropShadowElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEFloodElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEFuncAElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEFuncBElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEFuncGElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEFuncRElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEGaussianBlurElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEImageElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEMergeElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEMergeNodeElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEMorphologyElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEOffsetElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFEPointLightElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFESpecularLightingElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFESpotLightElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFETileElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFETurbulenceElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGFilterElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGForeignObjectElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGGElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGGeometryElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGGradientElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGGraphicsElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGImageElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGLineElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGLinearGradientElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGMPathElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGMarkerElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGMaskElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGMetadataElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGPathElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGPatternElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGPolygonElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGPolylineElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGRadialGradientElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGRectElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGSVGElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGScriptElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGSetElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGStopElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGStyleElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGSwitchElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGSymbolElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTSpanElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTextContentElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTextElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTextPathElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTextPositioningElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGTitleElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGUseElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for SVGViewElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for ShadowRoot

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for XMLDocument

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl JsCast for ParentNode

Source§

fn unchecked_from_js(val: JsValue) -> Self

Source§

fn unchecked_from_js_ref(val: &JsValue) -> &Self

Source§

fn unchecked_into<T>(self) -> T
where T: JsCast,

Source§

fn unchecked_ref<T>(&self) -> &T
where T: JsCast,

Source§

impl RefCast for ParentNode

Source§

type From = JsValue

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl UseInJsCode for ParentNode

Source§

fn serialize_to(&self, buf: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ToJs<T> for T
where T: UseInJsCode + ?Sized,