Struct script::test::Node

source ·
#[repr(C)]
pub struct Node {
Show 15 fields eventtarget: EventTarget, parent_node: MutNullableDom<Node>, first_child: MutNullableDom<Node>, last_child: MutNullableDom<Node>, next_sibling: MutNullableDom<Node>, prev_sibling: MutNullableDom<Node>, owner_doc: MutNullableDom<Document>, rare_data: DomRefCell<Option<Box<NodeRareData>>>, child_list: MutNullableDom<NodeList>, children_count: Cell<u32>, flags: Cell<NodeFlags>, inclusive_descendants_version: Cell<u64>, ranges: WeakRangeVec, style_data: DomRefCell<Option<Box<StyleData>>>, layout_data: DomRefCell<Option<Box<GenericLayoutData>>>,
}
Expand description

An HTML node.

Fields§

§eventtarget: EventTarget

The JavaScript reflector for this node.

§parent_node: MutNullableDom<Node>

The parent of this node.

§first_child: MutNullableDom<Node>

The first child of this node.

§last_child: MutNullableDom<Node>

The last child of this node.

§next_sibling: MutNullableDom<Node>

The next sibling of this node.

§prev_sibling: MutNullableDom<Node>

The previous sibling of this node.

§owner_doc: MutNullableDom<Document>

The document that this node belongs to.

§rare_data: DomRefCell<Option<Box<NodeRareData>>>

Rare node data.

§child_list: MutNullableDom<NodeList>

The live list of children return by .childNodes.

§children_count: Cell<u32>

The live count of children of this node.

§flags: Cell<NodeFlags>

A bitfield of flags for node items.

§inclusive_descendants_version: Cell<u64>

The maximum version of any inclusive descendant of this node.

§ranges: WeakRangeVec

A vector of weak references to Range instances of which the start or end containers are this node. No range should ever be found twice in this vector, even if both the start and end containers are this node.

§style_data: DomRefCell<Option<Box<StyleData>>>

Style data for this node. This is accessed and mutated by style passes and is used to lay out this node and populate layout data.

§layout_data: DomRefCell<Option<Box<GenericLayoutData>>>

Layout data for this node. This is populated during layout and can be used for incremental relayout and script queries.

Implementations§

source§

impl Node

source

fn add_child(&self, new_child: &Node, before: Option<&Node>)

Adds a new child to the end of this node’s list of children.

Fails unless new_child is disconnected from the tree.

source

pub fn clean_up_style_and_layout_data(&self)

source

pub fn complete_remove_subtree(root: &Node, context: &UnbindContext<'_>)

Clean up flags and unbind from tree.

source

fn remove_child(&self, child: &Node, cached_index: Option<u32>)

Removes the given child from this node’s list of children.

Fails unless child is a child of this node.

source

pub fn to_untrusted_node_address(&self) -> UntrustedNodeAddress

source

pub fn to_opaque(&self) -> OpaqueNode

source

pub fn as_custom_element(&self) -> Option<Root<Dom<Element>>>

source

pub fn fire_synthetic_mouse_event_not_trusted( &self, name: DOMString, can_gc: CanGc, )

source

pub fn parent_directionality(&self) -> String

source§

impl Node

source

fn rare_data(&self) -> Ref<'_, Option<Box<NodeRareData>>>

source

fn rare_data_mut(&self) -> RefMut<'_, Option<Box<NodeRareData>>>

source

fn ensure_rare_data(&self) -> RefMut<'_, Box<NodeRareData>>

source

pub fn is_before(&self, other: &Node) -> bool

Returns true if this node is before other in the same connected DOM tree.

source

pub fn registered_mutation_observers_mut( &self, ) -> RefMut<'_, Vec<RegisteredObserver>>

Return all registered mutation observers for this node. Lazily initialize the raredata if it does not exist.

source

pub fn registered_mutation_observers( &self, ) -> Option<Ref<'_, Vec<RegisteredObserver>>>

source

pub fn add_mutation_observer(&self, observer: RegisteredObserver)

Add a new mutation observer for a given node.

source

pub fn remove_mutation_observer(&self, observer: &MutationObserver)

Removes the mutation observer for a given node.

source

pub fn dump(&self)

Dumps the subtree rooted at this node, for debugging.

source

pub fn dump_indent(&self, indent: u32)

Dumps the node tree, for debugging, with indentation.

source

pub fn debug_str(&self) -> String

Returns a string that describes this node.

source

pub fn is_in_doc(&self) -> bool

source

pub fn is_in_shadow_tree(&self) -> bool

source

pub fn has_weird_parser_insertion_mode(&self) -> bool

source

pub fn set_weird_parser_insertion_mode(&self)

source

pub fn is_connected(&self) -> bool

source

pub fn type_id(&self) -> NodeTypeId

Returns the type ID of this node.

source

pub fn len(&self) -> u32

source

pub fn is_empty(&self) -> bool

source

pub fn index(&self) -> u32

source

pub fn has_parent(&self) -> bool

Returns true if this node has a parent.

source

pub fn children_count(&self) -> u32

source

pub fn ranges(&self) -> &WeakRangeVec

source

pub fn is_doctype(&self) -> bool

source

pub fn get_flag(&self, flag: NodeFlags) -> bool

source

pub fn set_flag(&self, flag: NodeFlags, value: bool)

source

pub fn note_dirty_descendants(&self)

source

pub fn has_dirty_descendants(&self) -> bool

source

pub fn rev_version(&self)

source

pub fn dirty(&self, damage: NodeDamage)

source

pub fn inclusive_descendants_version(&self) -> u64

The maximum version number of this node’s descendants, including itself

source

pub fn traverse_preorder( &self, shadow_including: ShadowIncluding, ) -> TreeIterator

Iterates over this node and all its descendants, in preorder.

source

pub fn inclusively_following_siblings( &self, ) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn inclusively_preceding_siblings( &self, ) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn common_ancestor( &self, other: &Node, shadow_including: ShadowIncluding, ) -> Option<Root<Dom<Node>>>

source

pub fn is_inclusive_ancestor_of(&self, parent: &Node) -> bool

source

pub fn is_ancestor_of(&self, parent: &Node) -> bool

source

pub fn is_shadow_including_inclusive_ancestor_of(&self, node: &Node) -> bool

source

pub fn following_siblings(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn preceding_siblings(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn following_nodes(&self, root: &Node) -> FollowingNodeIterator

source

pub fn preceding_nodes(&self, root: &Node) -> PrecedingNodeIterator

source

pub fn descending_last_children(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn is_parent_of(&self, child: &Node) -> bool

source

pub fn to_trusted_node_address(&self) -> TrustedNodeAddress

source

pub fn bounding_content_box(&self, can_gc: CanGc) -> Option<Rect<Au>>

Returns the rendered bounding content box if the element is rendered, and none otherwise.

source

pub fn bounding_content_box_or_zero(&self, can_gc: CanGc) -> Rect<Au>

source

pub fn content_boxes(&self, can_gc: CanGc) -> Vec<Rect<Au>>

source

pub fn client_rect(&self, can_gc: CanGc) -> Rect<i32>

source

pub fn scroll_area(&self, can_gc: CanGc) -> Rect<i32>

source

pub fn scroll_offset(&self) -> Vector2D<f32>

source

pub fn before( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn after( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn replace_with( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn prepend( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn append( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn replace_children( &self, nodes: Vec<NodeOrString>, can_gc: CanGc, ) -> Result<(), Error>

source

pub fn query_selector( &self, selectors: DOMString, ) -> Result<Option<Root<Dom<Element>>>, Error>

source

pub fn query_selector_iter( &self, selectors: DOMString, ) -> Result<QuerySelectorIterator, Error>

https://dom.spec.whatwg.org/#scope-match-a-selectors-string Get an iterator over all nodes which match a set of selectors Be careful not to do anything which may manipulate the DOM tree whilst iterating, otherwise the iterator may be invalidated.

source

pub fn query_selector_all( &self, selectors: DOMString, ) -> Result<Root<Dom<NodeList>>, Error>

source

pub fn ancestors(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn inclusive_ancestors( &self, shadow_including: ShadowIncluding, ) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn owner_doc(&self) -> Root<Dom<Document>>

source

pub fn set_owner_doc(&self, document: &Document)

source

pub fn containing_shadow_root(&self) -> Option<Root<Dom<ShadowRoot>>>

source

pub fn set_containing_shadow_root(&self, shadow_root: Option<&ShadowRoot>)

source

pub fn is_in_html_doc(&self) -> bool

source

pub fn is_connected_with_browsing_context(&self) -> bool

source

pub fn children(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn rev_children(&self) -> impl Iterator<Item = Root<Dom<Node>>>

source

pub fn child_elements(&self) -> impl Iterator<Item = Root<Dom<Element>>>

source

pub fn remove_self(&self)

source

pub fn unique_id(&self) -> String

source

pub fn summarize(&self) -> NodeInfo

source

pub fn insert_cell_or_row<F, G, I>( &self, index: i32, get_items: F, new_child: G, ) -> Result<Root<Dom<HTMLElement>>, Error>

Used by HTMLTableSectionElement::InsertRow and HTMLTableRowElement::InsertCell

source

pub fn delete_cell_or_row<F, G>( &self, index: i32, get_items: F, is_delete_type: G, ) -> Result<(), Error>
where F: Fn() -> Root<Dom<HTMLCollection>>, G: Fn(&Element) -> bool,

Used by HTMLTableSectionElement::DeleteRow and HTMLTableRowElement::DeleteCell

source

pub fn get_stylesheet(&self) -> Option<Arc<Stylesheet>>

source

pub fn get_cssom_stylesheet(&self) -> Option<Root<Dom<CSSStyleSheet>>>

source

pub fn retarget(&self, b: &Node) -> Root<Dom<Node>>

source

pub fn is_styled(&self) -> bool

source

pub fn is_display_none(&self) -> bool

source

pub fn style(&self, can_gc: CanGc) -> Option<Arc<ComputedValues>>

source§

impl Node

source

pub fn reflect_node<N>( node: Box<N>, document: &Document, can_gc: CanGc, ) -> Root<Dom<N>>

source

pub fn reflect_node_with_proto<N>( node: Box<N>, document: &Document, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Root<Dom<N>>

source

pub fn new_inherited(doc: &Document) -> Node

source

pub fn new_document_node() -> Node

source

fn new_(flags: NodeFlags, doc: Option<&Document>) -> Node

source

pub fn adopt(node: &Node, document: &Document)

source

pub fn ensure_pre_insertion_validity( node: &Node, parent: &Node, child: Option<&Node>, ) -> Result<(), Error>

source

pub fn pre_insert( node: &Node, parent: &Node, child: Option<&Node>, ) -> Result<Root<Dom<Node>>, Error>

source

fn insert( node: &Node, parent: &Node, child: Option<&Node>, suppress_observers: SuppressObserver, )

source

pub fn replace_all(node: Option<&Node>, parent: &Node)

source

pub fn string_replace_all(string: DOMString, parent: &Node, can_gc: CanGc)

source

fn pre_remove(child: &Node, parent: &Node) -> Result<Root<Dom<Node>>, Error>

source

fn remove(node: &Node, parent: &Node, suppress_observers: SuppressObserver)

source

pub fn clone( node: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, can_gc: CanGc, ) -> Root<Dom<Node>>

source

pub fn child_text_content(&self) -> DOMString

source

pub fn descendant_text_content(&self) -> DOMString

source

pub fn collect_text_contents<T: Iterator<Item = Root<Dom<Node>>>>( iterator: T, ) -> DOMString

source

pub fn namespace_to_string(namespace: Namespace) -> Option<DOMString>

source

pub fn locate_namespace(node: &Node, prefix: Option<DOMString>) -> Namespace

source

pub unsafe fn from_untrusted_node_address( candidate: UntrustedNodeAddress, ) -> &'static Self

If the given untrusted node address represents a valid DOM node in the given runtime, returns it.

§Safety

Callers should ensure they pass an UntrustedNodeAddress that points to a valid JSObject in memory that represents a Node.

source

pub fn html_serialize(&self, traversal_scope: TraversalScope) -> DOMString

source

pub fn xml_serialize(&self, traversal_scope: TraversalScope) -> DOMString

source

pub fn fragment_serialization_algorithm( &self, require_well_formed: bool, ) -> DOMString

Trait Implementations§

source§

impl Castable for Node

source§

fn is<T>(&self) -> bool
where T: DerivedFrom<Self>,

Check whether a DOM object implements one of its deriving interfaces.
source§

fn upcast<T>(&self) -> &T
where T: Castable, Self: DerivedFrom<T>,

Cast a DOM object upwards to one of the interfaces it derives from.
source§

fn downcast<T>(&self) -> Option<&T>
where T: DerivedFrom<Self>,

Cast a DOM object downwards to one of the interfaces it might implement.
source§

impl Debug for Node

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DomObject for Node

source§

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.
source§

fn global(&self) -> Root<Dom<GlobalScope>>
where Self: Sized,

Returns the global scope of the realm that the DomObject was created in.
source§

impl HasParent for Node

source§

fn as_parent(&self) -> &EventTarget

This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is

source§

type Parent = EventTarget

source§

impl IDLInterface for Node

source§

fn derives(class: &'static DOMClass) -> bool

Returns whether the given DOM class derives that interface.
source§

impl MallocSizeOf for Node

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl MutDomObject for Node

source§

unsafe fn init_reflector(&self, obj: *mut JSObject)

Initializes the Reflector Read more
source§

impl NodeMethods<DomTypeHolder> for Node

source§

fn NodeType(&self) -> u16

source§

fn NodeName(&self) -> DOMString

source§

fn BaseURI(&self) -> USVString

source§

fn IsConnected(&self) -> bool

source§

fn GetOwnerDocument(&self) -> Option<Root<Dom<Document>>>

source§

fn GetRootNode(&self, options: &GetRootNodeOptions) -> Root<Dom<Node>>

source§

fn GetParentNode(&self) -> Option<Root<Dom<Node>>>

source§

fn GetParentElement(&self) -> Option<Root<Dom<Element>>>

source§

fn HasChildNodes(&self) -> bool

source§

fn ChildNodes(&self) -> Root<Dom<NodeList>>

source§

fn GetFirstChild(&self) -> Option<Root<Dom<Node>>>

source§

fn GetLastChild(&self) -> Option<Root<Dom<Node>>>

source§

fn GetPreviousSibling(&self) -> Option<Root<Dom<Node>>>

source§

fn GetNextSibling(&self) -> Option<Root<Dom<Node>>>

source§

fn GetNodeValue(&self) -> Option<DOMString>

source§

fn SetNodeValue(&self, val: Option<DOMString>)

source§

fn GetTextContent(&self) -> Option<DOMString>

source§

fn SetTextContent(&self, value: Option<DOMString>, can_gc: CanGc)

source§

fn InsertBefore( &self, node: &Node, child: Option<&Node>, ) -> Result<Root<Dom<Node>>, Error>

source§

fn AppendChild(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>

source§

fn ReplaceChild( &self, node: &Node, child: &Node, ) -> Result<Root<Dom<Node>>, Error>

source§

fn RemoveChild(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>

source§

fn Normalize(&self)

source§

fn CloneNode(&self, deep: bool, can_gc: CanGc) -> Result<Root<Dom<Node>>, Error>

source§

fn IsEqualNode(&self, maybe_node: Option<&Node>) -> bool

source§

fn IsSameNode(&self, other_node: Option<&Node>) -> bool

source§

fn CompareDocumentPosition(&self, other: &Node) -> u16

source§

fn Contains(&self, maybe_other: Option<&Node>) -> bool

source§

fn LookupPrefix(&self, namespace: Option<DOMString>) -> Option<DOMString>

source§

fn LookupNamespaceURI(&self, prefix: Option<DOMString>) -> Option<DOMString>

source§

fn IsDefaultNamespace(&self, namespace: Option<DOMString>) -> bool

source§

impl PartialEq for Node

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> Serialize for &'a Node

source§

fn serialize<S: Serializer>( &self, serializer: &mut S, traversal_scope: TraversalScope, ) -> Result<()>

Take the serializer and call its methods to serialize this type. The type will dictate which methods are called and with what parameters.
source§

impl ToJSValConvertible for Node

source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
source§

impl Traceable for Node

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
source§

impl VirtualMethods for Node

source§

fn unbind_from_tree(&self, context: &UnbindContext<'_>)

source§

fn super_type(&self) -> Option<&dyn VirtualMethods>

Returns self as the superclass of the implementation for this trait, if any.
source§

fn children_changed(&self, mutation: &ChildrenMutation<'_>)

Called on the parent when its children are changed.
source§

fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation<'_>)

source§

fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool

Returns true if given attribute attr affects style of the given element.
source§

fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue

Returns the right AttrValue variant for the attribute with name name on this element.
source§

fn bind_to_tree(&self, context: &BindContext)

Called when a Node is appended to a tree, where ‘tree_connected’ indicates whether the tree is part of a Document.
source§

fn handle_event(&self, event: &Event)

Called during event dispatch after the bubbling phase completes.
source§

fn adopting_steps(&self, old_doc: &Document)

source§

fn cloning_steps( &self, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, )

source§

fn pop(&self)

Called on an element when it is popped off the stack of open elements of a parser.
source§

impl DerivedFrom<EventTarget> for Node

source§

impl DerivedFrom<Node> for Attr

source§

impl DerivedFrom<Node> for CDATASection

source§

impl DerivedFrom<Node> for CharacterData

source§

impl DerivedFrom<Node> for Comment

source§

impl DerivedFrom<Node> for Document

source§

impl DerivedFrom<Node> for DocumentFragment

source§

impl DerivedFrom<Node> for DocumentType

source§

impl DerivedFrom<Node> for Element

source§

impl DerivedFrom<Node> for HTMLAnchorElement

source§

impl DerivedFrom<Node> for HTMLAreaElement

source§

impl DerivedFrom<Node> for HTMLAudioElement

source§

impl DerivedFrom<Node> for HTMLBRElement

source§

impl DerivedFrom<Node> for HTMLBaseElement

source§

impl DerivedFrom<Node> for HTMLBodyElement

source§

impl DerivedFrom<Node> for HTMLButtonElement

source§

impl DerivedFrom<Node> for HTMLCanvasElement

source§

impl DerivedFrom<Node> for HTMLDListElement

source§

impl DerivedFrom<Node> for HTMLDataElement

source§

impl DerivedFrom<Node> for HTMLDataListElement

source§

impl DerivedFrom<Node> for HTMLDetailsElement

source§

impl DerivedFrom<Node> for HTMLDialogElement

source§

impl DerivedFrom<Node> for HTMLDirectoryElement

source§

impl DerivedFrom<Node> for HTMLDivElement

source§

impl DerivedFrom<Node> for HTMLElement

source§

impl DerivedFrom<Node> for HTMLEmbedElement

source§

impl DerivedFrom<Node> for HTMLFieldSetElement

source§

impl DerivedFrom<Node> for HTMLFontElement

source§

impl DerivedFrom<Node> for HTMLFormElement

source§

impl DerivedFrom<Node> for HTMLFrameElement

source§

impl DerivedFrom<Node> for HTMLFrameSetElement

source§

impl DerivedFrom<Node> for HTMLHRElement

source§

impl DerivedFrom<Node> for HTMLHeadElement

source§

impl DerivedFrom<Node> for HTMLHeadingElement

source§

impl DerivedFrom<Node> for HTMLHtmlElement

source§

impl DerivedFrom<Node> for HTMLIFrameElement

source§

impl DerivedFrom<Node> for HTMLImageElement

source§

impl DerivedFrom<Node> for HTMLInputElement

source§

impl DerivedFrom<Node> for HTMLLIElement

source§

impl DerivedFrom<Node> for HTMLLabelElement

source§

impl DerivedFrom<Node> for HTMLLegendElement

source§

impl DerivedFrom<Node> for HTMLLinkElement

source§

impl DerivedFrom<Node> for HTMLMapElement

source§

impl DerivedFrom<Node> for HTMLMediaElement

source§

impl DerivedFrom<Node> for HTMLMenuElement

source§

impl DerivedFrom<Node> for HTMLMetaElement

source§

impl DerivedFrom<Node> for HTMLMeterElement

source§

impl DerivedFrom<Node> for HTMLModElement

source§

impl DerivedFrom<Node> for HTMLOListElement

source§

impl DerivedFrom<Node> for HTMLObjectElement

source§

impl DerivedFrom<Node> for HTMLOptGroupElement

source§

impl DerivedFrom<Node> for HTMLOptionElement

source§

impl DerivedFrom<Node> for HTMLOutputElement

source§

impl DerivedFrom<Node> for HTMLParagraphElement

source§

impl DerivedFrom<Node> for HTMLParamElement

source§

impl DerivedFrom<Node> for HTMLPictureElement

source§

impl DerivedFrom<Node> for HTMLPreElement

source§

impl DerivedFrom<Node> for HTMLProgressElement

source§

impl DerivedFrom<Node> for HTMLQuoteElement

source§

impl DerivedFrom<Node> for HTMLScriptElement

source§

impl DerivedFrom<Node> for HTMLSelectElement

source§

impl DerivedFrom<Node> for HTMLSourceElement

source§

impl DerivedFrom<Node> for HTMLSpanElement

source§

impl DerivedFrom<Node> for HTMLStyleElement

source§

impl DerivedFrom<Node> for HTMLTableCaptionElement

source§

impl DerivedFrom<Node> for HTMLTableCellElement

source§

impl DerivedFrom<Node> for HTMLTableColElement

source§

impl DerivedFrom<Node> for HTMLTableElement

source§

impl DerivedFrom<Node> for HTMLTableRowElement

source§

impl DerivedFrom<Node> for HTMLTableSectionElement

source§

impl DerivedFrom<Node> for HTMLTemplateElement

source§

impl DerivedFrom<Node> for HTMLTextAreaElement

source§

impl DerivedFrom<Node> for HTMLTimeElement

source§

impl DerivedFrom<Node> for HTMLTitleElement

source§

impl DerivedFrom<Node> for HTMLTrackElement

source§

impl DerivedFrom<Node> for HTMLUListElement

source§

impl DerivedFrom<Node> for HTMLUnknownElement

source§

impl DerivedFrom<Node> for HTMLVideoElement

source§

impl DerivedFrom<Node> for Node

source§

impl DerivedFrom<Node> for ProcessingInstruction

source§

impl DerivedFrom<Node> for SVGElement

source§

impl DerivedFrom<Node> for SVGGraphicsElement

source§

impl DerivedFrom<Node> for SVGSVGElement

source§

impl DerivedFrom<Node> for ShadowRoot

source§

impl DerivedFrom<Node> for Text

source§

impl DerivedFrom<Node> for XMLDocument

source§

impl Eq for Node

Auto Trait Implementations§

§

impl !Freeze for Node

§

impl !RefUnwindSafe for Node

§

impl !Send for Node

§

impl !Sync for Node

§

impl Unpin for Node

§

impl !UnwindSafe for Node

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> Downcast<T> for T

source§

fn downcast(&self) -> &T

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> Filterable for T

source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> MaybeBoxed<Box<T>> for T

source§

fn maybe_boxed(self) -> Box<T>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ThisReflector for T
where T: DomObject,

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> Upcast<T> for T

source§

fn upcast(&self) -> Option<&T>

source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T