#[repr(transparent)]pub struct Node {
pub obj: JsValue,
}Expand description
The Node class.
This API requires the following crate features to be activated: Node
Fields§
§obj: JsValueImplementations§
Source§impl Node
impl Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Getter for the isConnected field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn owner_document(&self) -> Option<Document>
pub fn owner_document(&self) -> Option<Document>
Getter for the ownerDocument field of this object.
This API requires the following crate features to be activated: Document, Node
Source§impl Node
impl Node
Sourcepub fn parent_node(&self) -> Option<Node>
pub fn parent_node(&self) -> Option<Node>
Getter for the parentNode field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn parent_element(&self) -> Option<Element>
pub fn parent_element(&self) -> Option<Element>
Getter for the parentElement field of this object.
This API requires the following crate features to be activated: Element, Node
Source§impl Node
impl Node
Sourcepub fn child_nodes(&self) -> NodeList
pub fn child_nodes(&self) -> NodeList
Getter for the childNodes field of this object.
This API requires the following crate features to be activated: Node, NodeList
Source§impl Node
impl Node
Sourcepub fn first_child(&self) -> Option<Node>
pub fn first_child(&self) -> Option<Node>
Getter for the firstChild field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn last_child(&self) -> Option<Node>
pub fn last_child(&self) -> Option<Node>
Getter for the lastChild field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn previous_sibling(&self) -> Option<Node>
pub fn previous_sibling(&self) -> Option<Node>
Getter for the previousSibling field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn next_sibling(&self) -> Option<Node>
pub fn next_sibling(&self) -> Option<Node>
Getter for the nextSibling field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn node_value(&self) -> Option<String>
pub fn node_value(&self) -> Option<String>
Getter for the nodeValue field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn set_node_value(&self, value: Option<&str>)
pub fn set_node_value(&self, value: Option<&str>)
Setter for the nodeValue field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn text_content(&self) -> Option<String>
pub fn text_content(&self) -> Option<String>
Getter for the textContent field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn set_text_content(&self, value: Option<&str>)
pub fn set_text_content(&self, value: Option<&str>)
Setter for the textContent field of this object.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Sourcepub fn clone_node(&self) -> Result<Node, JsValue>
pub fn clone_node(&self) -> Result<Node, JsValue>
The cloneNode() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Sourcepub fn compare_document_position(&self, other: &Node) -> u16
pub fn compare_document_position(&self, other: &Node) -> u16
The compareDocumentPosition() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn get_root_node(&self) -> Node
pub fn get_root_node(&self) -> Node
The getRootNode() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn has_child_nodes(&self) -> bool
pub fn has_child_nodes(&self) -> bool
The hasChildNodes() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Sourcepub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
pub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
The isDefaultNamespace() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn is_equal_node(&self, node: Option<&Node>) -> bool
pub fn is_equal_node(&self, node: Option<&Node>) -> bool
The isEqualNode() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Sourcepub fn is_same_node(&self, node: Option<&Node>) -> bool
pub fn is_same_node(&self, node: Option<&Node>) -> bool
The isSameNode() method.
This API requires the following crate features to be activated: Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Source§impl Node
impl Node
Sourcepub const ELEMENT_NODE: u16 = 1u16
pub const ELEMENT_NODE: u16 = 1u16
The Node.ELEMENT_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const ATTRIBUTE_NODE: u16 = 2u16
pub const ATTRIBUTE_NODE: u16 = 2u16
The Node.ATTRIBUTE_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const TEXT_NODE: u16 = 3u16
pub const TEXT_NODE: u16 = 3u16
The Node.TEXT_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const CDATA_SECTION_NODE: u16 = 4u16
pub const CDATA_SECTION_NODE: u16 = 4u16
The Node.CDATA_SECTION_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const ENTITY_REFERENCE_NODE: u16 = 5u16
pub const ENTITY_REFERENCE_NODE: u16 = 5u16
The Node.ENTITY_REFERENCE_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const ENTITY_NODE: u16 = 6u16
pub const ENTITY_NODE: u16 = 6u16
The Node.ENTITY_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const PROCESSING_INSTRUCTION_NODE: u16 = 7u16
pub const PROCESSING_INSTRUCTION_NODE: u16 = 7u16
The Node.PROCESSING_INSTRUCTION_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const COMMENT_NODE: u16 = 8u16
pub const COMMENT_NODE: u16 = 8u16
The Node.COMMENT_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_NODE: u16 = 9u16
pub const DOCUMENT_NODE: u16 = 9u16
The Node.DOCUMENT_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_TYPE_NODE: u16 = 10u16
pub const DOCUMENT_TYPE_NODE: u16 = 10u16
The Node.DOCUMENT_TYPE_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_FRAGMENT_NODE: u16 = 11u16
pub const DOCUMENT_FRAGMENT_NODE: u16 = 11u16
The Node.DOCUMENT_FRAGMENT_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const NOTATION_NODE: u16 = 12u16
pub const NOTATION_NODE: u16 = 12u16
The Node.NOTATION_NODE const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u16
pub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u16
The Node.DOCUMENT_POSITION_DISCONNECTED const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_PRECEDING: u16 = 2u16
pub const DOCUMENT_POSITION_PRECEDING: u16 = 2u16
The Node.DOCUMENT_POSITION_PRECEDING const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u16
pub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u16
The Node.DOCUMENT_POSITION_FOLLOWING const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_CONTAINS: u16 = 8u16
pub const DOCUMENT_POSITION_CONTAINS: u16 = 8u16
The Node.DOCUMENT_POSITION_CONTAINS const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u16
pub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u16
The Node.DOCUMENT_POSITION_CONTAINED_BY const.
This API requires the following crate features to be activated: Node
Sourcepub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u16
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u16
The Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC const.
This API requires the following crate features to be activated: Node
Methods from Deref<Target = EventTarget>§
Sourcepub fn add_event_listener_with_callback(
&self,
type_: &str,
listener: &Function,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventListener, EventTarget
Sourcepub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options( &self, type_: &str, listener: &Function, options: &AddEventListenerOptions, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options( &self, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget
Sourcepub fn add_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_bool( &self, type_: &str, listener: &Function, options: bool, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool( &self, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventListener, EventTarget
Sourcepub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted( &self, type_: &str, listener: &Function, options: &AddEventListenerOptions, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted( &self, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget
Sourcepub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: bool,
wants_untrusted: Option<bool>,
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted( &self, type_: &str, listener: &Function, options: bool, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>,
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted( &self, type_: &str, listener: &EventListener, options: bool, wants_untrusted: Option<bool>, ) -> Result<(), JsValue>
The addEventListener() method.
This API requires the following crate features to be activated: EventListener, EventTarget
Sourcepub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>
pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>
The dispatchEvent() method.
This API requires the following crate features to be activated: Event, EventTarget
Sourcepub fn remove_event_listener_with_callback(
&self,
type_: &str,
listener: &Function,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback( &self, type_: &str, listener: &Function, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener( &self, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventListener, EventTarget
Sourcepub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options( &self, type_: &str, listener: &Function, options: &EventListenerOptions, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventListenerOptions, EventTarget
Sourcepub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_event_listener_options( &self, type_: &str, listener: &EventListener, options: &EventListenerOptions, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventListener, EventListenerOptions, EventTarget
Sourcepub fn remove_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_bool( &self, type_: &str, listener: &Function, options: bool, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventTarget
Sourcepub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool,
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_bool( &self, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>
The removeEventListener() method.
This API requires the following crate features to be activated: EventListener, EventTarget
Methods from Deref<Target = Object>§
Sourcepub fn constructor(&self) -> Function
pub fn constructor(&self) -> Function
The constructor property returns a reference to the Object constructor
function that created the instance object.
Sourcepub fn has_own_property(&self, property: &JsValue) -> bool
pub fn has_own_property(&self, property: &JsValue) -> bool
The hasOwnProperty() method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
Sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf() method checks if an object exists in another
object’s prototype chain.
Sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable() method returns a Boolean indicating
whether the specified property is enumerable.
Sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString() method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Sourcepub fn to_string(&self) -> JsString
pub fn to_string(&self) -> JsString
The toString() method returns a string representing the object.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue
pub const UNDEFINED: JsValue
pub const TRUE: JsValue
pub const FALSE: JsValue
Sourcepub fn id(&self) -> u64
pub fn id(&self) -> u64
Get the heap ID for this value.
This is used internally for encoding values to send to JS.
Sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Returns the value as f64 without type checking. Used by serde-wasm-bindgen for numeric conversions.
Sourcepub fn has_type<T>(&self) -> boolwhere
T: JsCast,
pub fn has_type<T>(&self) -> boolwhere
T: JsCast,
Check if this value is an instance of a specific JS type.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Checked division.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Unsigned right shift.
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Check if this value is a function.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Check if this value is undefined.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Check if this value has a property with the given name.
Sourcepub fn as_debug_string(&self) -> String
pub fn as_debug_string(&self) -> String
Get a debug string representation of the value.
Trait Implementations§
Source§impl AsRef<EventTarget> for Node
impl AsRef<EventTarget> for Node
Source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
Source§impl AsRef<Node> for CharacterData
impl AsRef<Node> for CharacterData
Source§impl AsRef<Node> for DocumentFragment
impl AsRef<Node> for DocumentFragment
Source§impl AsRef<Node> for DocumentType
impl AsRef<Node> for DocumentType
Source§impl AsRef<Node> for HtmlAnchorElement
impl AsRef<Node> for HtmlAnchorElement
Source§impl AsRef<Node> for HtmlAudioElement
impl AsRef<Node> for HtmlAudioElement
Source§impl AsRef<Node> for HtmlBodyElement
impl AsRef<Node> for HtmlBodyElement
Source§impl AsRef<Node> for HtmlBrElement
impl AsRef<Node> for HtmlBrElement
Source§impl AsRef<Node> for HtmlButtonElement
impl AsRef<Node> for HtmlButtonElement
Source§impl AsRef<Node> for HtmlCanvasElement
impl AsRef<Node> for HtmlCanvasElement
Source§impl AsRef<Node> for HtmlDivElement
impl AsRef<Node> for HtmlDivElement
Source§impl AsRef<Node> for HtmlDocument
impl AsRef<Node> for HtmlDocument
Source§impl AsRef<Node> for HtmlElement
impl AsRef<Node> for HtmlElement
Source§impl AsRef<Node> for HtmlFormElement
impl AsRef<Node> for HtmlFormElement
Source§impl AsRef<Node> for HtmlHeadElement
impl AsRef<Node> for HtmlHeadElement
Source§impl AsRef<Node> for HtmlImageElement
impl AsRef<Node> for HtmlImageElement
Source§impl AsRef<Node> for HtmlInputElement
impl AsRef<Node> for HtmlInputElement
Source§impl AsRef<Node> for HtmlLabelElement
impl AsRef<Node> for HtmlLabelElement
Source§impl AsRef<Node> for HtmlLinkElement
impl AsRef<Node> for HtmlLinkElement
Source§impl AsRef<Node> for HtmlMediaElement
impl AsRef<Node> for HtmlMediaElement
Source§impl AsRef<Node> for HtmlMetaElement
impl AsRef<Node> for HtmlMetaElement
Source§impl AsRef<Node> for HtmlOptionElement
impl AsRef<Node> for HtmlOptionElement
Source§impl AsRef<Node> for HtmlParagraphElement
impl AsRef<Node> for HtmlParagraphElement
Source§impl AsRef<Node> for HtmlScriptElement
impl AsRef<Node> for HtmlScriptElement
Source§impl AsRef<Node> for HtmlSelectElement
impl AsRef<Node> for HtmlSelectElement
Source§impl AsRef<Node> for HtmlSpanElement
impl AsRef<Node> for HtmlSpanElement
Source§impl AsRef<Node> for HtmlStyleElement
impl AsRef<Node> for HtmlStyleElement
Source§impl AsRef<Node> for HtmlTableCellElement
impl AsRef<Node> for HtmlTableCellElement
Source§impl AsRef<Node> for HtmlTableElement
impl AsRef<Node> for HtmlTableElement
Source§impl AsRef<Node> for HtmlTableRowElement
impl AsRef<Node> for HtmlTableRowElement
Source§impl AsRef<Node> for HtmlTemplateElement
impl AsRef<Node> for HtmlTemplateElement
Source§impl AsRef<Node> for HtmlTextAreaElement
impl AsRef<Node> for HtmlTextAreaElement
Source§impl AsRef<Node> for HtmlVideoElement
impl AsRef<Node> for HtmlVideoElement
Source§impl AsRef<Node> for ProcessingInstruction
impl AsRef<Node> for ProcessingInstruction
Source§impl AsRef<Node> for ShadowRoot
impl AsRef<Node> for ShadowRoot
Source§impl AsRef<Node> for SvgElement
impl AsRef<Node> for SvgElement
Source§impl AsRef<Node> for SvgGraphicsElement
impl AsRef<Node> for SvgGraphicsElement
Source§impl AsRef<Node> for SvgsvgElement
impl AsRef<Node> for SvgsvgElement
Source§impl BatchableResult for Node
impl BatchableResult for Node
Source§impl BinaryDecode for Node
impl BinaryDecode for Node
fn decode(decoder: &mut DecodedData<'_>) -> Result<Self, DecodeError>
Source§impl BinaryEncode for &Node
impl BinaryEncode for &Node
fn encode(self, encoder: &mut EncodedData)
Source§impl BinaryEncode for Node
impl BinaryEncode for Node
fn encode(self, encoder: &mut EncodedData)
Source§impl Deref for Node
impl Deref for Node
Source§type Target = EventTarget
type Target = EventTarget
Source§fn deref(&self) -> &EventTarget
fn deref(&self) -> &EventTarget
Source§impl EncodeTypeDef for Node
impl EncodeTypeDef for Node
Source§fn encode_type_def(buf: &mut Vec<u8>)
fn encode_type_def(buf: &mut Vec<u8>)
Source§impl From<&CharacterData> for Node
impl From<&CharacterData> for Node
Source§fn from(val: &CharacterData) -> Node
fn from(val: &CharacterData) -> Node
Source§impl From<&DocumentFragment> for Node
impl From<&DocumentFragment> for Node
Source§fn from(val: &DocumentFragment) -> Node
fn from(val: &DocumentFragment) -> Node
Source§impl From<&DocumentType> for Node
impl From<&DocumentType> for Node
Source§fn from(val: &DocumentType) -> Node
fn from(val: &DocumentType) -> Node
Source§impl From<&HtmlAnchorElement> for Node
impl From<&HtmlAnchorElement> for Node
Source§fn from(val: &HtmlAnchorElement) -> Node
fn from(val: &HtmlAnchorElement) -> Node
Source§impl From<&HtmlAudioElement> for Node
impl From<&HtmlAudioElement> for Node
Source§fn from(val: &HtmlAudioElement) -> Node
fn from(val: &HtmlAudioElement) -> Node
Source§impl From<&HtmlBodyElement> for Node
impl From<&HtmlBodyElement> for Node
Source§fn from(val: &HtmlBodyElement) -> Node
fn from(val: &HtmlBodyElement) -> Node
Source§impl From<&HtmlBrElement> for Node
impl From<&HtmlBrElement> for Node
Source§fn from(val: &HtmlBrElement) -> Node
fn from(val: &HtmlBrElement) -> Node
Source§impl From<&HtmlButtonElement> for Node
impl From<&HtmlButtonElement> for Node
Source§fn from(val: &HtmlButtonElement) -> Node
fn from(val: &HtmlButtonElement) -> Node
Source§impl From<&HtmlCanvasElement> for Node
impl From<&HtmlCanvasElement> for Node
Source§fn from(val: &HtmlCanvasElement) -> Node
fn from(val: &HtmlCanvasElement) -> Node
Source§impl From<&HtmlDivElement> for Node
impl From<&HtmlDivElement> for Node
Source§fn from(val: &HtmlDivElement) -> Node
fn from(val: &HtmlDivElement) -> Node
Source§impl From<&HtmlDocument> for Node
impl From<&HtmlDocument> for Node
Source§fn from(val: &HtmlDocument) -> Node
fn from(val: &HtmlDocument) -> Node
Source§impl From<&HtmlElement> for Node
impl From<&HtmlElement> for Node
Source§fn from(val: &HtmlElement) -> Node
fn from(val: &HtmlElement) -> Node
Source§impl From<&HtmlFormElement> for Node
impl From<&HtmlFormElement> for Node
Source§fn from(val: &HtmlFormElement) -> Node
fn from(val: &HtmlFormElement) -> Node
Source§impl From<&HtmlHeadElement> for Node
impl From<&HtmlHeadElement> for Node
Source§fn from(val: &HtmlHeadElement) -> Node
fn from(val: &HtmlHeadElement) -> Node
Source§impl From<&HtmlImageElement> for Node
impl From<&HtmlImageElement> for Node
Source§fn from(val: &HtmlImageElement) -> Node
fn from(val: &HtmlImageElement) -> Node
Source§impl From<&HtmlInputElement> for Node
impl From<&HtmlInputElement> for Node
Source§fn from(val: &HtmlInputElement) -> Node
fn from(val: &HtmlInputElement) -> Node
Source§impl From<&HtmlLabelElement> for Node
impl From<&HtmlLabelElement> for Node
Source§fn from(val: &HtmlLabelElement) -> Node
fn from(val: &HtmlLabelElement) -> Node
Source§impl From<&HtmlLinkElement> for Node
impl From<&HtmlLinkElement> for Node
Source§fn from(val: &HtmlLinkElement) -> Node
fn from(val: &HtmlLinkElement) -> Node
Source§impl From<&HtmlMediaElement> for Node
impl From<&HtmlMediaElement> for Node
Source§fn from(val: &HtmlMediaElement) -> Node
fn from(val: &HtmlMediaElement) -> Node
Source§impl From<&HtmlMetaElement> for Node
impl From<&HtmlMetaElement> for Node
Source§fn from(val: &HtmlMetaElement) -> Node
fn from(val: &HtmlMetaElement) -> Node
Source§impl From<&HtmlOptionElement> for Node
impl From<&HtmlOptionElement> for Node
Source§fn from(val: &HtmlOptionElement) -> Node
fn from(val: &HtmlOptionElement) -> Node
Source§impl From<&HtmlParagraphElement> for Node
impl From<&HtmlParagraphElement> for Node
Source§fn from(val: &HtmlParagraphElement) -> Node
fn from(val: &HtmlParagraphElement) -> Node
Source§impl From<&HtmlScriptElement> for Node
impl From<&HtmlScriptElement> for Node
Source§fn from(val: &HtmlScriptElement) -> Node
fn from(val: &HtmlScriptElement) -> Node
Source§impl From<&HtmlSelectElement> for Node
impl From<&HtmlSelectElement> for Node
Source§fn from(val: &HtmlSelectElement) -> Node
fn from(val: &HtmlSelectElement) -> Node
Source§impl From<&HtmlSpanElement> for Node
impl From<&HtmlSpanElement> for Node
Source§fn from(val: &HtmlSpanElement) -> Node
fn from(val: &HtmlSpanElement) -> Node
Source§impl From<&HtmlStyleElement> for Node
impl From<&HtmlStyleElement> for Node
Source§fn from(val: &HtmlStyleElement) -> Node
fn from(val: &HtmlStyleElement) -> Node
Source§impl From<&HtmlTableCellElement> for Node
impl From<&HtmlTableCellElement> for Node
Source§fn from(val: &HtmlTableCellElement) -> Node
fn from(val: &HtmlTableCellElement) -> Node
Source§impl From<&HtmlTableElement> for Node
impl From<&HtmlTableElement> for Node
Source§fn from(val: &HtmlTableElement) -> Node
fn from(val: &HtmlTableElement) -> Node
Source§impl From<&HtmlTableRowElement> for Node
impl From<&HtmlTableRowElement> for Node
Source§fn from(val: &HtmlTableRowElement) -> Node
fn from(val: &HtmlTableRowElement) -> Node
Source§impl From<&HtmlTemplateElement> for Node
impl From<&HtmlTemplateElement> for Node
Source§fn from(val: &HtmlTemplateElement) -> Node
fn from(val: &HtmlTemplateElement) -> Node
Source§impl From<&HtmlTextAreaElement> for Node
impl From<&HtmlTextAreaElement> for Node
Source§fn from(val: &HtmlTextAreaElement) -> Node
fn from(val: &HtmlTextAreaElement) -> Node
Source§impl From<&HtmlVideoElement> for Node
impl From<&HtmlVideoElement> for Node
Source§fn from(val: &HtmlVideoElement) -> Node
fn from(val: &HtmlVideoElement) -> Node
Source§impl From<&Node> for EventTarget
impl From<&Node> for EventTarget
Source§fn from(val: &Node) -> EventTarget
fn from(val: &Node) -> EventTarget
Source§impl From<&ProcessingInstruction> for Node
impl From<&ProcessingInstruction> for Node
Source§fn from(val: &ProcessingInstruction) -> Node
fn from(val: &ProcessingInstruction) -> Node
Source§impl From<&ShadowRoot> for Node
impl From<&ShadowRoot> for Node
Source§fn from(val: &ShadowRoot) -> Node
fn from(val: &ShadowRoot) -> Node
Source§impl From<&SvgElement> for Node
impl From<&SvgElement> for Node
Source§fn from(val: &SvgElement) -> Node
fn from(val: &SvgElement) -> Node
Source§impl From<&SvgGraphicsElement> for Node
impl From<&SvgGraphicsElement> for Node
Source§fn from(val: &SvgGraphicsElement) -> Node
fn from(val: &SvgGraphicsElement) -> Node
Source§impl From<&SvgsvgElement> for Node
impl From<&SvgsvgElement> for Node
Source§fn from(val: &SvgsvgElement) -> Node
fn from(val: &SvgsvgElement) -> Node
Source§impl From<CharacterData> for Node
impl From<CharacterData> for Node
Source§fn from(val: CharacterData) -> Node
fn from(val: CharacterData) -> Node
Source§impl From<DocumentFragment> for Node
impl From<DocumentFragment> for Node
Source§fn from(val: DocumentFragment) -> Node
fn from(val: DocumentFragment) -> Node
Source§impl From<DocumentType> for Node
impl From<DocumentType> for Node
Source§fn from(val: DocumentType) -> Node
fn from(val: DocumentType) -> Node
Source§impl From<HtmlAnchorElement> for Node
impl From<HtmlAnchorElement> for Node
Source§fn from(val: HtmlAnchorElement) -> Node
fn from(val: HtmlAnchorElement) -> Node
Source§impl From<HtmlAudioElement> for Node
impl From<HtmlAudioElement> for Node
Source§fn from(val: HtmlAudioElement) -> Node
fn from(val: HtmlAudioElement) -> Node
Source§impl From<HtmlBodyElement> for Node
impl From<HtmlBodyElement> for Node
Source§fn from(val: HtmlBodyElement) -> Node
fn from(val: HtmlBodyElement) -> Node
Source§impl From<HtmlBrElement> for Node
impl From<HtmlBrElement> for Node
Source§fn from(val: HtmlBrElement) -> Node
fn from(val: HtmlBrElement) -> Node
Source§impl From<HtmlButtonElement> for Node
impl From<HtmlButtonElement> for Node
Source§fn from(val: HtmlButtonElement) -> Node
fn from(val: HtmlButtonElement) -> Node
Source§impl From<HtmlCanvasElement> for Node
impl From<HtmlCanvasElement> for Node
Source§fn from(val: HtmlCanvasElement) -> Node
fn from(val: HtmlCanvasElement) -> Node
Source§impl From<HtmlDivElement> for Node
impl From<HtmlDivElement> for Node
Source§fn from(val: HtmlDivElement) -> Node
fn from(val: HtmlDivElement) -> Node
Source§impl From<HtmlDocument> for Node
impl From<HtmlDocument> for Node
Source§fn from(val: HtmlDocument) -> Node
fn from(val: HtmlDocument) -> Node
Source§impl From<HtmlElement> for Node
impl From<HtmlElement> for Node
Source§fn from(val: HtmlElement) -> Node
fn from(val: HtmlElement) -> Node
Source§impl From<HtmlFormElement> for Node
impl From<HtmlFormElement> for Node
Source§fn from(val: HtmlFormElement) -> Node
fn from(val: HtmlFormElement) -> Node
Source§impl From<HtmlHeadElement> for Node
impl From<HtmlHeadElement> for Node
Source§fn from(val: HtmlHeadElement) -> Node
fn from(val: HtmlHeadElement) -> Node
Source§impl From<HtmlImageElement> for Node
impl From<HtmlImageElement> for Node
Source§fn from(val: HtmlImageElement) -> Node
fn from(val: HtmlImageElement) -> Node
Source§impl From<HtmlInputElement> for Node
impl From<HtmlInputElement> for Node
Source§fn from(val: HtmlInputElement) -> Node
fn from(val: HtmlInputElement) -> Node
Source§impl From<HtmlLabelElement> for Node
impl From<HtmlLabelElement> for Node
Source§fn from(val: HtmlLabelElement) -> Node
fn from(val: HtmlLabelElement) -> Node
Source§impl From<HtmlLinkElement> for Node
impl From<HtmlLinkElement> for Node
Source§fn from(val: HtmlLinkElement) -> Node
fn from(val: HtmlLinkElement) -> Node
Source§impl From<HtmlMediaElement> for Node
impl From<HtmlMediaElement> for Node
Source§fn from(val: HtmlMediaElement) -> Node
fn from(val: HtmlMediaElement) -> Node
Source§impl From<HtmlMetaElement> for Node
impl From<HtmlMetaElement> for Node
Source§fn from(val: HtmlMetaElement) -> Node
fn from(val: HtmlMetaElement) -> Node
Source§impl From<HtmlOptionElement> for Node
impl From<HtmlOptionElement> for Node
Source§fn from(val: HtmlOptionElement) -> Node
fn from(val: HtmlOptionElement) -> Node
Source§impl From<HtmlParagraphElement> for Node
impl From<HtmlParagraphElement> for Node
Source§fn from(val: HtmlParagraphElement) -> Node
fn from(val: HtmlParagraphElement) -> Node
Source§impl From<HtmlScriptElement> for Node
impl From<HtmlScriptElement> for Node
Source§fn from(val: HtmlScriptElement) -> Node
fn from(val: HtmlScriptElement) -> Node
Source§impl From<HtmlSelectElement> for Node
impl From<HtmlSelectElement> for Node
Source§fn from(val: HtmlSelectElement) -> Node
fn from(val: HtmlSelectElement) -> Node
Source§impl From<HtmlSpanElement> for Node
impl From<HtmlSpanElement> for Node
Source§fn from(val: HtmlSpanElement) -> Node
fn from(val: HtmlSpanElement) -> Node
Source§impl From<HtmlStyleElement> for Node
impl From<HtmlStyleElement> for Node
Source§fn from(val: HtmlStyleElement) -> Node
fn from(val: HtmlStyleElement) -> Node
Source§impl From<HtmlTableCellElement> for Node
impl From<HtmlTableCellElement> for Node
Source§fn from(val: HtmlTableCellElement) -> Node
fn from(val: HtmlTableCellElement) -> Node
Source§impl From<HtmlTableElement> for Node
impl From<HtmlTableElement> for Node
Source§fn from(val: HtmlTableElement) -> Node
fn from(val: HtmlTableElement) -> Node
Source§impl From<HtmlTableRowElement> for Node
impl From<HtmlTableRowElement> for Node
Source§fn from(val: HtmlTableRowElement) -> Node
fn from(val: HtmlTableRowElement) -> Node
Source§impl From<HtmlTemplateElement> for Node
impl From<HtmlTemplateElement> for Node
Source§fn from(val: HtmlTemplateElement) -> Node
fn from(val: HtmlTemplateElement) -> Node
Source§impl From<HtmlTextAreaElement> for Node
impl From<HtmlTextAreaElement> for Node
Source§fn from(val: HtmlTextAreaElement) -> Node
fn from(val: HtmlTextAreaElement) -> Node
Source§impl From<HtmlVideoElement> for Node
impl From<HtmlVideoElement> for Node
Source§fn from(val: HtmlVideoElement) -> Node
fn from(val: HtmlVideoElement) -> Node
Source§impl From<Node> for EventTarget
impl From<Node> for EventTarget
Source§fn from(val: Node) -> EventTarget
fn from(val: Node) -> EventTarget
Source§impl From<ProcessingInstruction> for Node
impl From<ProcessingInstruction> for Node
Source§fn from(val: ProcessingInstruction) -> Node
fn from(val: ProcessingInstruction) -> Node
Source§impl From<ShadowRoot> for Node
impl From<ShadowRoot> for Node
Source§fn from(val: ShadowRoot) -> Node
fn from(val: ShadowRoot) -> Node
Source§impl From<SvgElement> for Node
impl From<SvgElement> for Node
Source§fn from(val: SvgElement) -> Node
fn from(val: SvgElement) -> Node
Source§impl From<SvgGraphicsElement> for Node
impl From<SvgGraphicsElement> for Node
Source§fn from(val: SvgGraphicsElement) -> Node
fn from(val: SvgGraphicsElement) -> Node
Source§impl From<SvgsvgElement> for Node
impl From<SvgsvgElement> for Node
Source§fn from(val: SvgsvgElement) -> Node
fn from(val: SvgsvgElement) -> Node
Source§impl JsCast for Node
impl JsCast for Node
Source§fn instanceof(__val: &JsValue) -> bool
fn instanceof(__val: &JsValue) -> bool
Source§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn is_type_of(val: &JsValue) -> bool
fn is_type_of(val: &JsValue) -> bool
JsValue provided
is a value of this type. Read moreSource§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Source§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T. Read more