pub struct DOMNode { /* private fields */ }DOMNode and DOMObject and WebScriptObject only.Expand description
Implementations§
Source§impl DOMNode
DOMNodeExtensions.
impl DOMNode
DOMNodeExtensions.
pub unsafe fn boundingBox(&self) -> NSRect
DOMExtensions only.pub unsafe fn lineBoxRects(&self) -> Option<Retained<NSArray>>
DOMExtensions only.Source§impl DOMNode
impl DOMNode
pub unsafe fn nodeName(&self) -> Retained<NSString>
pub unsafe fn nodeValue(&self) -> Retained<NSString>
Sourcepub unsafe fn setNodeValue(&self, node_value: Option<&NSString>)
👎Deprecated
pub unsafe fn setNodeValue(&self, node_value: Option<&NSString>)
pub unsafe fn nodeType(&self) -> c_ushort
pub unsafe fn parentNode(&self) -> Option<Retained<DOMNode>>
pub unsafe fn childNodes(&self) -> Option<Retained<DOMNodeList>>
DOMNodeList only.pub unsafe fn firstChild(&self) -> Option<Retained<DOMNode>>
pub unsafe fn lastChild(&self) -> Option<Retained<DOMNode>>
pub unsafe fn previousSibling(&self) -> Option<Retained<DOMNode>>
pub unsafe fn nextSibling(&self) -> Option<Retained<DOMNode>>
pub unsafe fn ownerDocument(&self) -> Option<Retained<DOMDocument>>
DOMDocument only.pub unsafe fn namespaceURI(&self) -> Retained<NSString>
pub unsafe fn prefix(&self) -> Retained<NSString>
pub unsafe fn localName(&self) -> Retained<NSString>
pub unsafe fn attributes(&self) -> Option<Retained<DOMNamedNodeMap>>
DOMNamedNodeMap only.pub unsafe fn baseURI(&self) -> Retained<NSString>
pub unsafe fn textContent(&self) -> Retained<NSString>
Sourcepub unsafe fn setTextContent(&self, text_content: Option<&NSString>)
pub unsafe fn setTextContent(&self, text_content: Option<&NSString>)
Setter for textContent.
This is copied when set.
pub unsafe fn parentElement(&self) -> Option<Retained<DOMElement>>
DOMElement only.pub unsafe fn isContentEditable(&self) -> bool
Sourcepub unsafe fn insertBefore_refChild(
&self,
new_child: Option<&DOMNode>,
ref_child: Option<&DOMNode>,
) -> Option<Retained<DOMNode>>
pub unsafe fn insertBefore_refChild( &self, new_child: Option<&DOMNode>, ref_child: Option<&DOMNode>, ) -> Option<Retained<DOMNode>>
§Safety
new_childmight not allowNone.ref_childmight not allowNone.
Sourcepub unsafe fn replaceChild_oldChild(
&self,
new_child: Option<&DOMNode>,
old_child: Option<&DOMNode>,
) -> Option<Retained<DOMNode>>
pub unsafe fn replaceChild_oldChild( &self, new_child: Option<&DOMNode>, old_child: Option<&DOMNode>, ) -> Option<Retained<DOMNode>>
§Safety
new_childmight not allowNone.old_childmight not allowNone.
Sourcepub unsafe fn removeChild(
&self,
old_child: Option<&DOMNode>,
) -> Option<Retained<DOMNode>>
👎Deprecated
pub unsafe fn removeChild( &self, old_child: Option<&DOMNode>, ) -> Option<Retained<DOMNode>>
§Safety
old_child might not allow None.
Sourcepub unsafe fn appendChild(
&self,
new_child: Option<&DOMNode>,
) -> Option<Retained<DOMNode>>
👎Deprecated
pub unsafe fn appendChild( &self, new_child: Option<&DOMNode>, ) -> Option<Retained<DOMNode>>
§Safety
new_child might not allow None.
pub unsafe fn hasChildNodes(&self) -> bool
pub unsafe fn cloneNode(&self, deep: bool) -> Option<Retained<DOMNode>>
pub unsafe fn normalize(&self)
Sourcepub unsafe fn isSupported_version(
&self,
feature: Option<&NSString>,
version: Option<&NSString>,
) -> bool
pub unsafe fn isSupported_version( &self, feature: Option<&NSString>, version: Option<&NSString>, ) -> bool
§Safety
featuremight not allowNone.versionmight not allowNone.
pub unsafe fn hasAttributes(&self) -> bool
Sourcepub unsafe fn isSameNode(&self, other: Option<&DOMNode>) -> bool
pub unsafe fn isSameNode(&self, other: Option<&DOMNode>) -> bool
§Safety
other might not allow None.
Sourcepub unsafe fn isEqualNode(&self, other: Option<&DOMNode>) -> bool
pub unsafe fn isEqualNode(&self, other: Option<&DOMNode>) -> bool
§Safety
other might not allow None.
Sourcepub unsafe fn lookupPrefix(
&self,
namespace_uri: Option<&NSString>,
) -> Option<Retained<NSString>>
pub unsafe fn lookupPrefix( &self, namespace_uri: Option<&NSString>, ) -> Option<Retained<NSString>>
§Safety
namespace_uri might not allow None.
Sourcepub unsafe fn lookupNamespaceURI(
&self,
prefix: Option<&NSString>,
) -> Option<Retained<NSString>>
pub unsafe fn lookupNamespaceURI( &self, prefix: Option<&NSString>, ) -> Option<Retained<NSString>>
§Safety
prefix might not allow None.
Sourcepub unsafe fn isDefaultNamespace(
&self,
namespace_uri: Option<&NSString>,
) -> bool
pub unsafe fn isDefaultNamespace( &self, namespace_uri: Option<&NSString>, ) -> bool
§Safety
namespace_uri might not allow None.
Source§impl DOMNode
DOMNodeDeprecated.
impl DOMNode
DOMNodeDeprecated.
Sourcepub unsafe fn insertBefore(
&self,
new_child: Option<&DOMNode>,
ref_child: Option<&DOMNode>,
) -> Option<Retained<DOMNode>>
👎Deprecated
pub unsafe fn insertBefore( &self, new_child: Option<&DOMNode>, ref_child: Option<&DOMNode>, ) -> Option<Retained<DOMNode>>
§Safety
new_childmight not allowNone.ref_childmight not allowNone.
Source§impl DOMNode
WebDOMNodeOperations.
impl DOMNode
WebDOMNodeOperations.
Sourcepub unsafe fn webArchive(&self) -> Option<Retained<WebArchive>>
👎DeprecatedAvailable on crate features WebDOMOperations and WebArchive only.
pub unsafe fn webArchive(&self) -> Option<Retained<WebArchive>>
WebDOMOperations and WebArchive only.A WebArchive representing the node and the children of the node.
Methods from Deref<Target = DOMObject>§
pub unsafe fn sheet(&self) -> Option<Retained<DOMStyleSheet>>
DOMStyleSheet only.Methods from Deref<Target = WebScriptObject>§
Sourcepub unsafe fn JSObject(&self) -> JSObjectRef
Available on crate feature objc2-javascript-core only.
pub unsafe fn JSObject(&self) -> JSObjectRef
objc2-javascript-core only.Returns: The equivalent JSObjectRef for this WebScriptObject.
Use this method to bridge between the WebScriptObject and JavaScriptCore APIs.
Sourcepub unsafe fn callWebScriptMethod_withArguments(
&self,
name: Option<&NSString>,
arguments: Option<&NSArray>,
) -> Option<Retained<AnyObject>>
👎Deprecated
pub unsafe fn callWebScriptMethod_withArguments( &self, name: Option<&NSString>, arguments: Option<&NSArray>, ) -> Option<Retained<AnyObject>>
Parameter name: The name of the method to call in the script environment.
Parameter arguments: The arguments to pass to the script environment.
Calls the specified method in the script environment using the specified arguments.
Returns: Returns the result of calling the script method. Returns WebUndefined when an exception is thrown in the script environment.
§Safety
namemight not allowNone.argumentsgeneric should be of the correct type.argumentsmight not allowNone.
Sourcepub unsafe fn evaluateWebScript(
&self,
script: Option<&NSString>,
) -> Option<Retained<AnyObject>>
👎Deprecated
pub unsafe fn evaluateWebScript( &self, script: Option<&NSString>, ) -> Option<Retained<AnyObject>>
Parameter script: The script to execute in the target script environment.
The script will be executed in the target script environment. The format of the script is dependent of the target script environment.
Returns: Returns the result of evaluating the script in the script environment. Returns WebUndefined when an exception is thrown in the script environment.
§Safety
script might not allow None.
Sourcepub unsafe fn removeWebScriptKey(&self, name: Option<&NSString>)
👎Deprecated
pub unsafe fn removeWebScriptKey(&self, name: Option<&NSString>)
Parameter name: The name of the property to remove.
Removes the property from the object in the script environment.
§Safety
name might not allow None.
Sourcepub unsafe fn stringRepresentation(&self) -> Option<Retained<NSString>>
👎Deprecated
pub unsafe fn stringRepresentation(&self) -> Option<Retained<NSString>>
Converts the target object to a string representation. The coercion of non string objects type is dependent on the script environment.
Returns: Returns the string representation of the object.
Sourcepub unsafe fn webScriptValueAtIndex(
&self,
index: c_uint,
) -> Option<Retained<AnyObject>>
👎Deprecated
pub unsafe fn webScriptValueAtIndex( &self, index: c_uint, ) -> Option<Retained<AnyObject>>
Parameter index: The index of the property to return.
Gets the value of the property at the specified index.
Returns: The value of the property. Returns WebUndefined when an exception is thrown in the script environment.
Sourcepub unsafe fn setWebScriptValueAtIndex_value(
&self,
index: c_uint,
value: Option<&AnyObject>,
)
👎Deprecated
pub unsafe fn setWebScriptValueAtIndex_value( &self, index: c_uint, value: Option<&AnyObject>, )
Parameter index: The index of the property to set.
Parameter value: The value of the property to set.
Sets the property value at the specified index.
§Safety
valueshould be of the correct type.valuemight not allowNone.
Sourcepub unsafe fn setException(&self, description: Option<&NSString>)
👎Deprecated
pub unsafe fn setException(&self, description: Option<&NSString>)
Parameter description: The description of the exception.
Raises an exception in the script environment in the context of the current object.
§Safety
description might not allow None.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init/new methods).
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Attempt to downcast the object to a class of type T.
This is the reference-variant. Use Retained::downcast if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString to a NSMutableString,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass: for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject.
§Panics
This works internally by calling isKindOfClass:. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject and
NSProxy implement this method.
§Examples
Cast an NSString back and forth from NSObject.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();Try (and fail) to cast an NSObject to an NSString.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}Trait Implementations§
Source§impl AsRef<DOMNode> for DOMCDATASection
Available on crate features DOMCharacterData and DOMText and DOMCDATASection only.
impl AsRef<DOMNode> for DOMCDATASection
DOMCharacterData and DOMText and DOMCDATASection only.Source§impl AsRef<DOMNode> for DOMCharacterData
Available on crate feature DOMCharacterData only.
impl AsRef<DOMNode> for DOMCharacterData
DOMCharacterData only.Source§impl AsRef<DOMNode> for DOMComment
Available on crate features DOMCharacterData and DOMComment only.
impl AsRef<DOMNode> for DOMComment
DOMCharacterData and DOMComment only.Source§impl AsRef<DOMNode> for DOMDocument
Available on crate feature DOMDocument only.
impl AsRef<DOMNode> for DOMDocument
DOMDocument only.Source§impl AsRef<DOMNode> for DOMDocumentFragment
Available on crate feature DOMDocumentFragment only.
impl AsRef<DOMNode> for DOMDocumentFragment
DOMDocumentFragment only.Source§impl AsRef<DOMNode> for DOMDocumentType
Available on crate feature DOMDocumentType only.
impl AsRef<DOMNode> for DOMDocumentType
DOMDocumentType only.Source§impl AsRef<DOMNode> for DOMElement
Available on crate feature DOMElement only.
impl AsRef<DOMNode> for DOMElement
DOMElement only.Source§impl AsRef<DOMNode> for DOMEntityReference
Available on crate feature DOMEntityReference only.
impl AsRef<DOMNode> for DOMEntityReference
DOMEntityReference only.Source§impl AsRef<DOMNode> for DOMHTMLAnchorElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAnchorElement only.
impl AsRef<DOMNode> for DOMHTMLAnchorElement
DOMElement and DOMHTMLElement and DOMHTMLAnchorElement only.Source§impl AsRef<DOMNode> for DOMHTMLAppletElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAppletElement only.
impl AsRef<DOMNode> for DOMHTMLAppletElement
DOMElement and DOMHTMLElement and DOMHTMLAppletElement only.Source§impl AsRef<DOMNode> for DOMHTMLAreaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAreaElement only.
impl AsRef<DOMNode> for DOMHTMLAreaElement
DOMElement and DOMHTMLElement and DOMHTMLAreaElement only.Source§impl AsRef<DOMNode> for DOMHTMLBRElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBRElement only.
impl AsRef<DOMNode> for DOMHTMLBRElement
DOMElement and DOMHTMLElement and DOMHTMLBRElement only.Source§impl AsRef<DOMNode> for DOMHTMLBaseElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBaseElement only.
impl AsRef<DOMNode> for DOMHTMLBaseElement
DOMElement and DOMHTMLElement and DOMHTMLBaseElement only.Source§impl AsRef<DOMNode> for DOMHTMLBaseFontElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBaseFontElement only.
impl AsRef<DOMNode> for DOMHTMLBaseFontElement
DOMElement and DOMHTMLElement and DOMHTMLBaseFontElement only.Source§impl AsRef<DOMNode> for DOMHTMLBodyElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBodyElement only.
impl AsRef<DOMNode> for DOMHTMLBodyElement
DOMElement and DOMHTMLElement and DOMHTMLBodyElement only.Source§impl AsRef<DOMNode> for DOMHTMLButtonElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLButtonElement only.
impl AsRef<DOMNode> for DOMHTMLButtonElement
DOMElement and DOMHTMLElement and DOMHTMLButtonElement only.Source§impl AsRef<DOMNode> for DOMHTMLDListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDListElement only.
impl AsRef<DOMNode> for DOMHTMLDListElement
DOMElement and DOMHTMLElement and DOMHTMLDListElement only.Source§impl AsRef<DOMNode> for DOMHTMLDirectoryElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDirectoryElement only.
impl AsRef<DOMNode> for DOMHTMLDirectoryElement
DOMElement and DOMHTMLElement and DOMHTMLDirectoryElement only.Source§impl AsRef<DOMNode> for DOMHTMLDivElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDivElement only.
impl AsRef<DOMNode> for DOMHTMLDivElement
DOMElement and DOMHTMLElement and DOMHTMLDivElement only.Source§impl AsRef<DOMNode> for DOMHTMLDocument
Available on crate features DOMDocument and DOMHTMLDocument only.
impl AsRef<DOMNode> for DOMHTMLDocument
DOMDocument and DOMHTMLDocument only.Source§impl AsRef<DOMNode> for DOMHTMLElement
Available on crate features DOMElement and DOMHTMLElement only.
impl AsRef<DOMNode> for DOMHTMLElement
DOMElement and DOMHTMLElement only.Source§impl AsRef<DOMNode> for DOMHTMLEmbedElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLEmbedElement only.
impl AsRef<DOMNode> for DOMHTMLEmbedElement
DOMElement and DOMHTMLElement and DOMHTMLEmbedElement only.Source§impl AsRef<DOMNode> for DOMHTMLFieldSetElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFieldSetElement only.
impl AsRef<DOMNode> for DOMHTMLFieldSetElement
DOMElement and DOMHTMLElement and DOMHTMLFieldSetElement only.Source§impl AsRef<DOMNode> for DOMHTMLFontElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFontElement only.
impl AsRef<DOMNode> for DOMHTMLFontElement
DOMElement and DOMHTMLElement and DOMHTMLFontElement only.Source§impl AsRef<DOMNode> for DOMHTMLFormElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFormElement only.
impl AsRef<DOMNode> for DOMHTMLFormElement
DOMElement and DOMHTMLElement and DOMHTMLFormElement only.Source§impl AsRef<DOMNode> for DOMHTMLFrameElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFrameElement only.
impl AsRef<DOMNode> for DOMHTMLFrameElement
DOMElement and DOMHTMLElement and DOMHTMLFrameElement only.Source§impl AsRef<DOMNode> for DOMHTMLFrameSetElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFrameSetElement only.
impl AsRef<DOMNode> for DOMHTMLFrameSetElement
DOMElement and DOMHTMLElement and DOMHTMLFrameSetElement only.Source§impl AsRef<DOMNode> for DOMHTMLHRElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHRElement only.
impl AsRef<DOMNode> for DOMHTMLHRElement
DOMElement and DOMHTMLElement and DOMHTMLHRElement only.Source§impl AsRef<DOMNode> for DOMHTMLHeadElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHeadElement only.
impl AsRef<DOMNode> for DOMHTMLHeadElement
DOMElement and DOMHTMLElement and DOMHTMLHeadElement only.Source§impl AsRef<DOMNode> for DOMHTMLHeadingElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHeadingElement only.
impl AsRef<DOMNode> for DOMHTMLHeadingElement
DOMElement and DOMHTMLElement and DOMHTMLHeadingElement only.Source§impl AsRef<DOMNode> for DOMHTMLHtmlElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHtmlElement only.
impl AsRef<DOMNode> for DOMHTMLHtmlElement
DOMElement and DOMHTMLElement and DOMHTMLHtmlElement only.Source§impl AsRef<DOMNode> for DOMHTMLIFrameElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLIFrameElement only.
impl AsRef<DOMNode> for DOMHTMLIFrameElement
DOMElement and DOMHTMLElement and DOMHTMLIFrameElement only.Source§impl AsRef<DOMNode> for DOMHTMLImageElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLImageElement only.
impl AsRef<DOMNode> for DOMHTMLImageElement
DOMElement and DOMHTMLElement and DOMHTMLImageElement only.Source§impl AsRef<DOMNode> for DOMHTMLInputElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLInputElement only.
impl AsRef<DOMNode> for DOMHTMLInputElement
DOMElement and DOMHTMLElement and DOMHTMLInputElement only.Source§impl AsRef<DOMNode> for DOMHTMLLIElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLIElement only.
impl AsRef<DOMNode> for DOMHTMLLIElement
DOMElement and DOMHTMLElement and DOMHTMLLIElement only.Source§impl AsRef<DOMNode> for DOMHTMLLabelElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLabelElement only.
impl AsRef<DOMNode> for DOMHTMLLabelElement
DOMElement and DOMHTMLElement and DOMHTMLLabelElement only.Source§impl AsRef<DOMNode> for DOMHTMLLegendElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLegendElement only.
impl AsRef<DOMNode> for DOMHTMLLegendElement
DOMElement and DOMHTMLElement and DOMHTMLLegendElement only.Source§impl AsRef<DOMNode> for DOMHTMLLinkElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLinkElement only.
impl AsRef<DOMNode> for DOMHTMLLinkElement
DOMElement and DOMHTMLElement and DOMHTMLLinkElement only.Source§impl AsRef<DOMNode> for DOMHTMLMapElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMapElement only.
impl AsRef<DOMNode> for DOMHTMLMapElement
DOMElement and DOMHTMLElement and DOMHTMLMapElement only.Source§impl AsRef<DOMNode> for DOMHTMLMarqueeElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMarqueeElement only.
impl AsRef<DOMNode> for DOMHTMLMarqueeElement
DOMElement and DOMHTMLElement and DOMHTMLMarqueeElement only.Source§impl AsRef<DOMNode> for DOMHTMLMenuElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMenuElement only.
impl AsRef<DOMNode> for DOMHTMLMenuElement
DOMElement and DOMHTMLElement and DOMHTMLMenuElement only.Source§impl AsRef<DOMNode> for DOMHTMLMetaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMetaElement only.
impl AsRef<DOMNode> for DOMHTMLMetaElement
DOMElement and DOMHTMLElement and DOMHTMLMetaElement only.Source§impl AsRef<DOMNode> for DOMHTMLModElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLModElement only.
impl AsRef<DOMNode> for DOMHTMLModElement
DOMElement and DOMHTMLElement and DOMHTMLModElement only.Source§impl AsRef<DOMNode> for DOMHTMLOListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOListElement only.
impl AsRef<DOMNode> for DOMHTMLOListElement
DOMElement and DOMHTMLElement and DOMHTMLOListElement only.Source§impl AsRef<DOMNode> for DOMHTMLObjectElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLObjectElement only.
impl AsRef<DOMNode> for DOMHTMLObjectElement
DOMElement and DOMHTMLElement and DOMHTMLObjectElement only.Source§impl AsRef<DOMNode> for DOMHTMLOptGroupElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOptGroupElement only.
impl AsRef<DOMNode> for DOMHTMLOptGroupElement
DOMElement and DOMHTMLElement and DOMHTMLOptGroupElement only.Source§impl AsRef<DOMNode> for DOMHTMLOptionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOptionElement only.
impl AsRef<DOMNode> for DOMHTMLOptionElement
DOMElement and DOMHTMLElement and DOMHTMLOptionElement only.Source§impl AsRef<DOMNode> for DOMHTMLParagraphElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLParagraphElement only.
impl AsRef<DOMNode> for DOMHTMLParagraphElement
DOMElement and DOMHTMLElement and DOMHTMLParagraphElement only.Source§impl AsRef<DOMNode> for DOMHTMLParamElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLParamElement only.
impl AsRef<DOMNode> for DOMHTMLParamElement
DOMElement and DOMHTMLElement and DOMHTMLParamElement only.Source§impl AsRef<DOMNode> for DOMHTMLPreElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLPreElement only.
impl AsRef<DOMNode> for DOMHTMLPreElement
DOMElement and DOMHTMLElement and DOMHTMLPreElement only.Source§impl AsRef<DOMNode> for DOMHTMLQuoteElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLQuoteElement only.
impl AsRef<DOMNode> for DOMHTMLQuoteElement
DOMElement and DOMHTMLElement and DOMHTMLQuoteElement only.Source§impl AsRef<DOMNode> for DOMHTMLScriptElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLScriptElement only.
impl AsRef<DOMNode> for DOMHTMLScriptElement
DOMElement and DOMHTMLElement and DOMHTMLScriptElement only.Source§impl AsRef<DOMNode> for DOMHTMLSelectElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLSelectElement only.
impl AsRef<DOMNode> for DOMHTMLSelectElement
DOMElement and DOMHTMLElement and DOMHTMLSelectElement only.Source§impl AsRef<DOMNode> for DOMHTMLStyleElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLStyleElement only.
impl AsRef<DOMNode> for DOMHTMLStyleElement
DOMElement and DOMHTMLElement and DOMHTMLStyleElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableCaptionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableCaptionElement only.
impl AsRef<DOMNode> for DOMHTMLTableCaptionElement
DOMElement and DOMHTMLElement and DOMHTMLTableCaptionElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableCellElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableCellElement only.
impl AsRef<DOMNode> for DOMHTMLTableCellElement
DOMElement and DOMHTMLElement and DOMHTMLTableCellElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableColElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableColElement only.
impl AsRef<DOMNode> for DOMHTMLTableColElement
DOMElement and DOMHTMLElement and DOMHTMLTableColElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableElement only.
impl AsRef<DOMNode> for DOMHTMLTableElement
DOMElement and DOMHTMLElement and DOMHTMLTableElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableRowElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableRowElement only.
impl AsRef<DOMNode> for DOMHTMLTableRowElement
DOMElement and DOMHTMLElement and DOMHTMLTableRowElement only.Source§impl AsRef<DOMNode> for DOMHTMLTableSectionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableSectionElement only.
impl AsRef<DOMNode> for DOMHTMLTableSectionElement
DOMElement and DOMHTMLElement and DOMHTMLTableSectionElement only.Source§impl AsRef<DOMNode> for DOMHTMLTextAreaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTextAreaElement only.
impl AsRef<DOMNode> for DOMHTMLTextAreaElement
DOMElement and DOMHTMLElement and DOMHTMLTextAreaElement only.Source§impl AsRef<DOMNode> for DOMHTMLTitleElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTitleElement only.
impl AsRef<DOMNode> for DOMHTMLTitleElement
DOMElement and DOMHTMLElement and DOMHTMLTitleElement only.Source§impl AsRef<DOMNode> for DOMHTMLUListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLUListElement only.
impl AsRef<DOMNode> for DOMHTMLUListElement
DOMElement and DOMHTMLElement and DOMHTMLUListElement only.Source§impl AsRef<DOMNode> for DOMProcessingInstruction
Available on crate features DOMCharacterData and DOMProcessingInstruction only.
impl AsRef<DOMNode> for DOMProcessingInstruction
DOMCharacterData and DOMProcessingInstruction only.Source§impl AsRef<DOMNode> for DOMText
Available on crate features DOMCharacterData and DOMText only.
impl AsRef<DOMNode> for DOMText
DOMCharacterData and DOMText only.Source§impl AsRef<WebScriptObject> for DOMNode
impl AsRef<WebScriptObject> for DOMNode
Source§fn as_ref(&self) -> &WebScriptObject
fn as_ref(&self) -> &WebScriptObject
Source§impl Borrow<DOMNode> for DOMCDATASection
Available on crate features DOMCharacterData and DOMText and DOMCDATASection only.
impl Borrow<DOMNode> for DOMCDATASection
DOMCharacterData and DOMText and DOMCDATASection only.Source§impl Borrow<DOMNode> for DOMCharacterData
Available on crate feature DOMCharacterData only.
impl Borrow<DOMNode> for DOMCharacterData
DOMCharacterData only.Source§impl Borrow<DOMNode> for DOMComment
Available on crate features DOMCharacterData and DOMComment only.
impl Borrow<DOMNode> for DOMComment
DOMCharacterData and DOMComment only.Source§impl Borrow<DOMNode> for DOMDocument
Available on crate feature DOMDocument only.
impl Borrow<DOMNode> for DOMDocument
DOMDocument only.Source§impl Borrow<DOMNode> for DOMDocumentFragment
Available on crate feature DOMDocumentFragment only.
impl Borrow<DOMNode> for DOMDocumentFragment
DOMDocumentFragment only.Source§impl Borrow<DOMNode> for DOMDocumentType
Available on crate feature DOMDocumentType only.
impl Borrow<DOMNode> for DOMDocumentType
DOMDocumentType only.Source§impl Borrow<DOMNode> for DOMElement
Available on crate feature DOMElement only.
impl Borrow<DOMNode> for DOMElement
DOMElement only.Source§impl Borrow<DOMNode> for DOMEntityReference
Available on crate feature DOMEntityReference only.
impl Borrow<DOMNode> for DOMEntityReference
DOMEntityReference only.Source§impl Borrow<DOMNode> for DOMHTMLAnchorElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAnchorElement only.
impl Borrow<DOMNode> for DOMHTMLAnchorElement
DOMElement and DOMHTMLElement and DOMHTMLAnchorElement only.Source§impl Borrow<DOMNode> for DOMHTMLAppletElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAppletElement only.
impl Borrow<DOMNode> for DOMHTMLAppletElement
DOMElement and DOMHTMLElement and DOMHTMLAppletElement only.Source§impl Borrow<DOMNode> for DOMHTMLAreaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLAreaElement only.
impl Borrow<DOMNode> for DOMHTMLAreaElement
DOMElement and DOMHTMLElement and DOMHTMLAreaElement only.Source§impl Borrow<DOMNode> for DOMHTMLBRElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBRElement only.
impl Borrow<DOMNode> for DOMHTMLBRElement
DOMElement and DOMHTMLElement and DOMHTMLBRElement only.Source§impl Borrow<DOMNode> for DOMHTMLBaseElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBaseElement only.
impl Borrow<DOMNode> for DOMHTMLBaseElement
DOMElement and DOMHTMLElement and DOMHTMLBaseElement only.Source§impl Borrow<DOMNode> for DOMHTMLBaseFontElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBaseFontElement only.
impl Borrow<DOMNode> for DOMHTMLBaseFontElement
DOMElement and DOMHTMLElement and DOMHTMLBaseFontElement only.Source§impl Borrow<DOMNode> for DOMHTMLBodyElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLBodyElement only.
impl Borrow<DOMNode> for DOMHTMLBodyElement
DOMElement and DOMHTMLElement and DOMHTMLBodyElement only.Source§impl Borrow<DOMNode> for DOMHTMLButtonElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLButtonElement only.
impl Borrow<DOMNode> for DOMHTMLButtonElement
DOMElement and DOMHTMLElement and DOMHTMLButtonElement only.Source§impl Borrow<DOMNode> for DOMHTMLDListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDListElement only.
impl Borrow<DOMNode> for DOMHTMLDListElement
DOMElement and DOMHTMLElement and DOMHTMLDListElement only.Source§impl Borrow<DOMNode> for DOMHTMLDirectoryElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDirectoryElement only.
impl Borrow<DOMNode> for DOMHTMLDirectoryElement
DOMElement and DOMHTMLElement and DOMHTMLDirectoryElement only.Source§impl Borrow<DOMNode> for DOMHTMLDivElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLDivElement only.
impl Borrow<DOMNode> for DOMHTMLDivElement
DOMElement and DOMHTMLElement and DOMHTMLDivElement only.Source§impl Borrow<DOMNode> for DOMHTMLDocument
Available on crate features DOMDocument and DOMHTMLDocument only.
impl Borrow<DOMNode> for DOMHTMLDocument
DOMDocument and DOMHTMLDocument only.Source§impl Borrow<DOMNode> for DOMHTMLElement
Available on crate features DOMElement and DOMHTMLElement only.
impl Borrow<DOMNode> for DOMHTMLElement
DOMElement and DOMHTMLElement only.Source§impl Borrow<DOMNode> for DOMHTMLEmbedElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLEmbedElement only.
impl Borrow<DOMNode> for DOMHTMLEmbedElement
DOMElement and DOMHTMLElement and DOMHTMLEmbedElement only.Source§impl Borrow<DOMNode> for DOMHTMLFieldSetElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFieldSetElement only.
impl Borrow<DOMNode> for DOMHTMLFieldSetElement
DOMElement and DOMHTMLElement and DOMHTMLFieldSetElement only.Source§impl Borrow<DOMNode> for DOMHTMLFontElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFontElement only.
impl Borrow<DOMNode> for DOMHTMLFontElement
DOMElement and DOMHTMLElement and DOMHTMLFontElement only.Source§impl Borrow<DOMNode> for DOMHTMLFormElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFormElement only.
impl Borrow<DOMNode> for DOMHTMLFormElement
DOMElement and DOMHTMLElement and DOMHTMLFormElement only.Source§impl Borrow<DOMNode> for DOMHTMLFrameElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFrameElement only.
impl Borrow<DOMNode> for DOMHTMLFrameElement
DOMElement and DOMHTMLElement and DOMHTMLFrameElement only.Source§impl Borrow<DOMNode> for DOMHTMLFrameSetElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLFrameSetElement only.
impl Borrow<DOMNode> for DOMHTMLFrameSetElement
DOMElement and DOMHTMLElement and DOMHTMLFrameSetElement only.Source§impl Borrow<DOMNode> for DOMHTMLHRElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHRElement only.
impl Borrow<DOMNode> for DOMHTMLHRElement
DOMElement and DOMHTMLElement and DOMHTMLHRElement only.Source§impl Borrow<DOMNode> for DOMHTMLHeadElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHeadElement only.
impl Borrow<DOMNode> for DOMHTMLHeadElement
DOMElement and DOMHTMLElement and DOMHTMLHeadElement only.Source§impl Borrow<DOMNode> for DOMHTMLHeadingElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHeadingElement only.
impl Borrow<DOMNode> for DOMHTMLHeadingElement
DOMElement and DOMHTMLElement and DOMHTMLHeadingElement only.Source§impl Borrow<DOMNode> for DOMHTMLHtmlElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLHtmlElement only.
impl Borrow<DOMNode> for DOMHTMLHtmlElement
DOMElement and DOMHTMLElement and DOMHTMLHtmlElement only.Source§impl Borrow<DOMNode> for DOMHTMLIFrameElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLIFrameElement only.
impl Borrow<DOMNode> for DOMHTMLIFrameElement
DOMElement and DOMHTMLElement and DOMHTMLIFrameElement only.Source§impl Borrow<DOMNode> for DOMHTMLImageElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLImageElement only.
impl Borrow<DOMNode> for DOMHTMLImageElement
DOMElement and DOMHTMLElement and DOMHTMLImageElement only.Source§impl Borrow<DOMNode> for DOMHTMLInputElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLInputElement only.
impl Borrow<DOMNode> for DOMHTMLInputElement
DOMElement and DOMHTMLElement and DOMHTMLInputElement only.Source§impl Borrow<DOMNode> for DOMHTMLLIElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLIElement only.
impl Borrow<DOMNode> for DOMHTMLLIElement
DOMElement and DOMHTMLElement and DOMHTMLLIElement only.Source§impl Borrow<DOMNode> for DOMHTMLLabelElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLabelElement only.
impl Borrow<DOMNode> for DOMHTMLLabelElement
DOMElement and DOMHTMLElement and DOMHTMLLabelElement only.Source§impl Borrow<DOMNode> for DOMHTMLLegendElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLegendElement only.
impl Borrow<DOMNode> for DOMHTMLLegendElement
DOMElement and DOMHTMLElement and DOMHTMLLegendElement only.Source§impl Borrow<DOMNode> for DOMHTMLLinkElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLLinkElement only.
impl Borrow<DOMNode> for DOMHTMLLinkElement
DOMElement and DOMHTMLElement and DOMHTMLLinkElement only.Source§impl Borrow<DOMNode> for DOMHTMLMapElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMapElement only.
impl Borrow<DOMNode> for DOMHTMLMapElement
DOMElement and DOMHTMLElement and DOMHTMLMapElement only.Source§impl Borrow<DOMNode> for DOMHTMLMarqueeElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMarqueeElement only.
impl Borrow<DOMNode> for DOMHTMLMarqueeElement
DOMElement and DOMHTMLElement and DOMHTMLMarqueeElement only.Source§impl Borrow<DOMNode> for DOMHTMLMenuElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMenuElement only.
impl Borrow<DOMNode> for DOMHTMLMenuElement
DOMElement and DOMHTMLElement and DOMHTMLMenuElement only.Source§impl Borrow<DOMNode> for DOMHTMLMetaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLMetaElement only.
impl Borrow<DOMNode> for DOMHTMLMetaElement
DOMElement and DOMHTMLElement and DOMHTMLMetaElement only.Source§impl Borrow<DOMNode> for DOMHTMLModElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLModElement only.
impl Borrow<DOMNode> for DOMHTMLModElement
DOMElement and DOMHTMLElement and DOMHTMLModElement only.Source§impl Borrow<DOMNode> for DOMHTMLOListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOListElement only.
impl Borrow<DOMNode> for DOMHTMLOListElement
DOMElement and DOMHTMLElement and DOMHTMLOListElement only.Source§impl Borrow<DOMNode> for DOMHTMLObjectElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLObjectElement only.
impl Borrow<DOMNode> for DOMHTMLObjectElement
DOMElement and DOMHTMLElement and DOMHTMLObjectElement only.Source§impl Borrow<DOMNode> for DOMHTMLOptGroupElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOptGroupElement only.
impl Borrow<DOMNode> for DOMHTMLOptGroupElement
DOMElement and DOMHTMLElement and DOMHTMLOptGroupElement only.Source§impl Borrow<DOMNode> for DOMHTMLOptionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLOptionElement only.
impl Borrow<DOMNode> for DOMHTMLOptionElement
DOMElement and DOMHTMLElement and DOMHTMLOptionElement only.Source§impl Borrow<DOMNode> for DOMHTMLParagraphElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLParagraphElement only.
impl Borrow<DOMNode> for DOMHTMLParagraphElement
DOMElement and DOMHTMLElement and DOMHTMLParagraphElement only.Source§impl Borrow<DOMNode> for DOMHTMLParamElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLParamElement only.
impl Borrow<DOMNode> for DOMHTMLParamElement
DOMElement and DOMHTMLElement and DOMHTMLParamElement only.Source§impl Borrow<DOMNode> for DOMHTMLPreElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLPreElement only.
impl Borrow<DOMNode> for DOMHTMLPreElement
DOMElement and DOMHTMLElement and DOMHTMLPreElement only.Source§impl Borrow<DOMNode> for DOMHTMLQuoteElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLQuoteElement only.
impl Borrow<DOMNode> for DOMHTMLQuoteElement
DOMElement and DOMHTMLElement and DOMHTMLQuoteElement only.Source§impl Borrow<DOMNode> for DOMHTMLScriptElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLScriptElement only.
impl Borrow<DOMNode> for DOMHTMLScriptElement
DOMElement and DOMHTMLElement and DOMHTMLScriptElement only.Source§impl Borrow<DOMNode> for DOMHTMLSelectElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLSelectElement only.
impl Borrow<DOMNode> for DOMHTMLSelectElement
DOMElement and DOMHTMLElement and DOMHTMLSelectElement only.Source§impl Borrow<DOMNode> for DOMHTMLStyleElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLStyleElement only.
impl Borrow<DOMNode> for DOMHTMLStyleElement
DOMElement and DOMHTMLElement and DOMHTMLStyleElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableCaptionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableCaptionElement only.
impl Borrow<DOMNode> for DOMHTMLTableCaptionElement
DOMElement and DOMHTMLElement and DOMHTMLTableCaptionElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableCellElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableCellElement only.
impl Borrow<DOMNode> for DOMHTMLTableCellElement
DOMElement and DOMHTMLElement and DOMHTMLTableCellElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableColElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableColElement only.
impl Borrow<DOMNode> for DOMHTMLTableColElement
DOMElement and DOMHTMLElement and DOMHTMLTableColElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableElement only.
impl Borrow<DOMNode> for DOMHTMLTableElement
DOMElement and DOMHTMLElement and DOMHTMLTableElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableRowElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableRowElement only.
impl Borrow<DOMNode> for DOMHTMLTableRowElement
DOMElement and DOMHTMLElement and DOMHTMLTableRowElement only.Source§impl Borrow<DOMNode> for DOMHTMLTableSectionElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTableSectionElement only.
impl Borrow<DOMNode> for DOMHTMLTableSectionElement
DOMElement and DOMHTMLElement and DOMHTMLTableSectionElement only.Source§impl Borrow<DOMNode> for DOMHTMLTextAreaElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTextAreaElement only.
impl Borrow<DOMNode> for DOMHTMLTextAreaElement
DOMElement and DOMHTMLElement and DOMHTMLTextAreaElement only.Source§impl Borrow<DOMNode> for DOMHTMLTitleElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLTitleElement only.
impl Borrow<DOMNode> for DOMHTMLTitleElement
DOMElement and DOMHTMLElement and DOMHTMLTitleElement only.Source§impl Borrow<DOMNode> for DOMHTMLUListElement
Available on crate features DOMElement and DOMHTMLElement and DOMHTMLUListElement only.
impl Borrow<DOMNode> for DOMHTMLUListElement
DOMElement and DOMHTMLElement and DOMHTMLUListElement only.Source§impl Borrow<DOMNode> for DOMProcessingInstruction
Available on crate features DOMCharacterData and DOMProcessingInstruction only.
impl Borrow<DOMNode> for DOMProcessingInstruction
DOMCharacterData and DOMProcessingInstruction only.Source§impl Borrow<DOMNode> for DOMText
Available on crate features DOMCharacterData and DOMText only.
impl Borrow<DOMNode> for DOMText
DOMCharacterData and DOMText only.Source§impl Borrow<WebScriptObject> for DOMNode
impl Borrow<WebScriptObject> for DOMNode
Source§fn borrow(&self) -> &WebScriptObject
fn borrow(&self) -> &WebScriptObject
Source§impl ClassType for DOMNode
impl ClassType for DOMNode
Source§const NAME: &'static str = "DOMNode"
const NAME: &'static str = "DOMNode"
Source§type ThreadKind = <<DOMNode as ClassType>::Super as ClassType>::ThreadKind
type ThreadKind = <<DOMNode as ClassType>::Super as ClassType>::ThreadKind
Source§impl CopyingHelper for DOMNode
impl CopyingHelper for DOMNode
Source§impl DOMEventTarget for DOMNode
impl DOMEventTarget for DOMNode
Source§unsafe fn addEventListener_listener_useCapture(
&self,
type: Option<&NSString>,
listener: Option<&ProtocolObject<dyn DOMEventListener>>,
use_capture: bool,
)
unsafe fn addEventListener_listener_useCapture( &self, type: Option<&NSString>, listener: Option<&ProtocolObject<dyn DOMEventListener>>, use_capture: bool, )
DOMEventTarget and DOMEventListener only.Source§unsafe fn removeEventListener_listener_useCapture(
&self,
type: Option<&NSString>,
listener: Option<&ProtocolObject<dyn DOMEventListener>>,
use_capture: bool,
)
unsafe fn removeEventListener_listener_useCapture( &self, type: Option<&NSString>, listener: Option<&ProtocolObject<dyn DOMEventListener>>, use_capture: bool, )
DOMEventTarget and DOMEventListener only.Source§unsafe fn dispatchEvent(&self, event: Option<&DOMEvent>) -> bool
unsafe fn dispatchEvent(&self, event: Option<&DOMEvent>) -> bool
DOMEvent and DOMObject and WebScriptObject and DOMEventTarget only.Source§unsafe fn addEventListener(
&self,
type: Option<&NSString>,
listener: Option<&ProtocolObject<dyn DOMEventListener>>,
use_capture: bool,
)
unsafe fn addEventListener( &self, type: Option<&NSString>, listener: Option<&ProtocolObject<dyn DOMEventListener>>, use_capture: bool, )
DOMEventTarget and DOMEventListener only.Source§unsafe fn removeEventListener(
&self,
type: Option<&NSString>,
listener: Option<&ProtocolObject<dyn DOMEventListener>>,
use_capture: bool,
)
unsafe fn removeEventListener( &self, type: Option<&NSString>, listener: Option<&ProtocolObject<dyn DOMEventListener>>, use_capture: bool, )
DOMEventTarget and DOMEventListener only.Source§impl NSCopying for DOMNode
impl NSCopying for DOMNode
Source§impl NSObjectProtocol for DOMNode
impl NSObjectProtocol for DOMNode
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass directly, or cast your objects with AnyObject::downcast_ref