Struct stdweb::web::Element[][src]

pub struct Element(_);

A reference to a JavaScript object which implements the IElement interface.

(JavaScript docs)

Trait Implementations

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Element
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Element
[src]

impl From<Element> for EventTarget
[src]

Performs the conversion.

impl TryFrom<EventTarget> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<Element> for Node
[src]

Performs the conversion.

impl TryFrom<Node> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl InstanceOf for Element
[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for Element
[src]

Performs the conversion.

impl ReferenceType for Element
[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<Element> for Reference
[src]

Performs the conversion.

impl TryFrom<Element> for Reference
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Reference> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Value> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for Element
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl JsSerialize for Element
[src]

impl IEventTarget for Element
[src]

Adds given event handler to the list of event listeners for the specified EventTarget on which it's called. Read more

Dispatches an Event at this EventTarget, invoking the affected event listeners in the appropriate order. Read more

impl INode for Element
[src]

Casts a reference to this object into a reference to a Node.

Adds a node to the end of the list of children of a specified parent node. Read more

Removes a child node from the DOM. Read more

Returns a duplicate of the node on which this method was called. Read more

Checks whenever a given node is a descendant of this one or not. Read more

Inserts the specified node before the reference node as a child of the current node. Read more

Replaces one hild node of the specified node with another. Read more

Returns the parent of this node in the DOM tree. Read more

Returns the node's first child in the tree, or None if the node is childless. Read more

Returns the node's last child in the tree, or None if the node is childless. Read more

Returns the node's next sibling in the tree, or None if there isn't such a node. Read more

Returns the name of the node. Read more

Returns the type of the node. Read more

Returns the value of the node. Read more

Sets the value of the node. Read more

Returns the Document that this node belongs to. Read more

Returns an Element that is the parent of this node. Returns null if the node has no parent or the parent is not an Element. Read more

Returns the node's previous sibling in the tree, or None if there isn't such a node. Read more

A property which represents the text content of a node and its descendants. Read more

Sets the text content of this node; calling thil removes all of node's children and replaces them with a single text node with the given value. Read more

Returns a live collection of child nodes of this node. Read more

Gets the base URL. Read more

Returns whether this node has children nodes. Read more

Determines whether the given namespace is the default namespace of this node. Read more

Tests whether this node is equal to another node. Two nodes are equal if they have the same type, defining characteristics, matching attributes, and so on. Read more

Test whether two Node references are the same. Read more

Returns the prefix for the given namespace URI, if present. Read more

Returns the namespace URI for the given prefix. Read more

Merges any adjacent text nodes and removes empty text nodes under this node. Read more

impl IElement for Element
[src]

The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element. Read more

The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not. Read more

Element.getAttribute() returns the value of a specified attribute on the element. If the given attribute does not exist, the value returned will either be null or "" (the empty string); Read more

Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value. Read more

Gets the the number of pixels that an element's content is scrolled vertically. Read more

Sets the the number of pixels that an element's content is scrolled vertically. Read more

Gets the the number of pixels that an element's content is scrolled to the left. Read more

Sets the the number of pixels that an element's content is scrolled to the left. Read more

Element.getAttributeNames() returns the attribute names of the element as an Array of strings. If the element has no attributes it returns an empty array. Read more

Element.removeAttribute removes an attribute from the specified element. Read more

The Element.hasAttributes() method returns Boolean value, indicating if the current element has any attributes or not. Read more

Designates a specific element as the capture target of future pointer events. Read more

Releases pointer capture that was previously set for a specific pointer Read more

Returns a boolean indicating if the element has captured the specified pointer Read more

impl From<HtmlElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for HtmlElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<CanvasElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for CanvasElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<ImageElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for ImageElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<InputElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for InputElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<TextAreaElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for TextAreaElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<SelectElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for SelectElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl From<OptionElement> for Element
[src]

Performs the conversion.

impl TryFrom<Element> for OptionElement
[src]

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

impl Send for Element

impl Sync for Element