Struct script::dom::element::Element

source ·
#[repr(C)]
pub struct Element {
Show 14 fields node: Node, local_name: LocalName, tag_name: TagName, namespace: Namespace, prefix: DomRefCell<Option<Prefix>>, attrs: DomRefCell<Vec<Dom<Attr>>>, id_attribute: DomRefCell<Option<Atom>>, is: DomRefCell<Option<LocalName>>, style_attribute: DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>, attr_list: MutNullableDom<NamedNodeMap>, class_list: MutNullableDom<DOMTokenList>, state: Cell<ElementState>, selector_flags: Cell<ElementSelectorFlags>, rare_data: DomRefCell<Option<Box<ElementRareData>>>,
}

Fields§

§node: Node§local_name: LocalName§tag_name: TagName§namespace: Namespace§prefix: DomRefCell<Option<Prefix>>§attrs: DomRefCell<Vec<Dom<Attr>>>§id_attribute: DomRefCell<Option<Atom>>§is: DomRefCell<Option<LocalName>>§style_attribute: DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>§attr_list: MutNullableDom<NamedNodeMap>§class_list: MutNullableDom<DOMTokenList>§state: Cell<ElementState>§selector_flags: Cell<ElementSelectorFlags>

These flags are set by the style system to indicate the that certain operations may require restyling this element or its descendants. The flags are not atomic, so the style system takes care of only set them when it has exclusive access to the element.

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

Implementations§

source§

impl Element

source§

impl Element

source§

impl Element

source

pub fn create( name: QualName, is: Option<LocalName>, document: &Document, creator: ElementCreator, mode: CustomElementCreationMode, proto: Option<HandleObject<'_>> ) -> Root<Dom<Element>>

source

pub fn new_inherited( local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document ) -> Element

source

pub fn new_inherited_with_state( state: ElementState, local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document ) -> Element

source

pub fn new( local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document, proto: Option<HandleObject<'_>> ) -> Root<Dom<Element>>

source

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

source

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

source

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

source

pub fn restyle(&self, damage: NodeDamage)

source

pub fn set_is(&self, is: LocalName)

source

pub fn get_is(&self) -> Option<LocalName>

source

pub fn set_custom_element_state(&self, state: CustomElementState)

source

pub fn get_custom_element_state(&self) -> CustomElementState

source

pub fn set_custom_element_definition( &self, definition: Rc<CustomElementDefinition> )

source

pub fn get_custom_element_definition( &self ) -> Option<Rc<CustomElementDefinition>>

source

pub fn clear_custom_element_definition(&self)

source

pub fn push_callback_reaction( &self, function: Rc<Function>, args: Box<[Heap<JSVal>]> )

source

pub fn push_upgrade_reaction(&self, definition: Rc<CustomElementDefinition>)

source

pub fn clear_reaction_queue(&self)

source

pub fn invoke_reactions(&self)

source

pub fn style(&self) -> Option<Arc<ComputedValues>>

style will be None for elements in a display: none subtree. otherwise, the element has a layout box iff it doesn’t have display: none.

source

pub fn has_css_layout_box(&self) -> bool

source

fn is_potentially_scrollable_body(&self) -> bool

source

fn has_scrolling_box(&self) -> bool

source

fn has_overflow(&self) -> bool

source

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

source

pub fn is_shadow_host(&self) -> bool

source

pub fn attach_shadow( &self, is_ua_widget: IsUserAgentWidget ) -> Result<Root<Dom<ShadowRoot>>, Error>

https://dom.spec.whatwg.org/#dom-element-attachshadow XXX This is not exposed to web content yet. It is meant to be used for UA widgets only.

source

pub fn detach_shadow(&self)

source

pub fn is_translate_enabled(&self) -> bool

source

pub fn directionality(&self) -> String

source

pub(crate) fn is_root(&self) -> bool

source§

impl Element

source

pub fn is_html_element(&self) -> bool

source

pub fn html_element_in_html_document(&self) -> bool

source

pub fn local_name(&self) -> &LocalName

source

pub fn parsed_name(&self, name: DOMString) -> LocalName

source

pub fn namespace(&self) -> &Namespace

source

pub fn prefix(&self) -> Ref<'_, Option<Prefix>>

source

pub fn set_prefix(&self, prefix: Option<Prefix>)

source

pub fn attrs(&self) -> Ref<'_, [Dom<Attr>]>

source

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

source

pub fn name_attribute(&self) -> Option<Atom>

source

pub fn style_attribute( &self ) -> &DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>

source

pub fn summarize(&self) -> Vec<AttrInfo>

source

pub fn is_void(&self) -> bool

source

pub fn serialize( &self, traversal_scope: TraversalScope ) -> Result<DOMString, Error>

source

pub fn xmlSerialize( &self, traversal_scope: XmlTraversalScope ) -> Result<DOMString, Error>

source

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

source

pub fn lookup_prefix(&self, namespace: Namespace) -> Option<DOMString>

source

pub fn input_method_type(&self) -> Option<InputMethodType>

source

pub fn is_focusable_area(&self) -> bool

source

pub fn is_actually_disabled(&self) -> bool

source

pub fn push_new_attribute( &self, local_name: LocalName, value: AttrValue, name: LocalName, namespace: Namespace, prefix: Option<Prefix> )

source

pub fn push_attribute(&self, attr: &Attr)

source

pub fn get_attribute( &self, namespace: &Namespace, local_name: &LocalName ) -> Option<Root<Dom<Attr>>>

source

pub fn get_attribute_by_name(&self, name: DOMString) -> Option<Root<Dom<Attr>>>

source

pub fn set_attribute_from_parser( &self, qname: QualName, value: DOMString, prefix: Option<Prefix> )

source

pub fn set_attribute(&self, name: &LocalName, value: AttrValue)

source

pub fn set_custom_attribute( &self, name: DOMString, value: DOMString ) -> Result<(), Error>

source

fn set_first_matching_attribute<F>( &self, local_name: LocalName, value: AttrValue, name: LocalName, namespace: Namespace, prefix: Option<Prefix>, find: F )where F: Fn(&Attr) -> bool,

source

pub fn parse_attribute( &self, namespace: &Namespace, local_name: &LocalName, value: DOMString ) -> AttrValue

source

pub fn remove_attribute( &self, namespace: &Namespace, local_name: &LocalName ) -> Option<Root<Dom<Attr>>>

source

pub fn remove_attribute_by_name( &self, name: &LocalName ) -> Option<Root<Dom<Attr>>>

source

fn remove_first_matching_attribute<F>(&self, find: F) -> Option<Root<Dom<Attr>>>where F: Fn(&Attr) -> bool,

source

pub fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool

source

pub fn set_atomic_attribute(&self, local_name: &LocalName, value: DOMString)

source

pub fn has_attribute(&self, local_name: &LocalName) -> bool

source

pub fn set_bool_attribute(&self, local_name: &LocalName, value: bool)

source

pub fn get_url_attribute(&self, local_name: &LocalName) -> USVString

source

pub fn set_url_attribute(&self, local_name: &LocalName, value: USVString)

source

pub fn get_string_attribute(&self, local_name: &LocalName) -> DOMString

source

pub fn set_string_attribute(&self, local_name: &LocalName, value: DOMString)

source

pub fn get_tokenlist_attribute(&self, local_name: &LocalName) -> Vec<Atom>

source

pub fn set_tokenlist_attribute(&self, local_name: &LocalName, value: DOMString)

source

pub fn set_atomic_tokenlist_attribute( &self, local_name: &LocalName, tokens: Vec<Atom> )

source

pub fn get_int_attribute(&self, local_name: &LocalName, default: i32) -> i32

source

pub fn set_int_attribute(&self, local_name: &LocalName, value: i32)

source

pub fn get_uint_attribute(&self, local_name: &LocalName, default: u32) -> u32

source

pub fn set_uint_attribute(&self, local_name: &LocalName, value: u32)

source

pub fn will_mutate_attr(&self, attr: &Attr)

source

pub fn insert_adjacent( &self, where_: AdjacentPosition, node: &Node ) -> Result<Option<Root<Dom<Node>>>, Error>

source

pub fn scroll(&self, x_: f64, y_: f64, behavior: ScrollBehavior)

source

pub fn parse_fragment( &self, markup: DOMString ) -> Result<Root<Dom<DocumentFragment>>, Error>

source

pub fn fragment_parsing_context( owner_doc: &Document, element: Option<&Self> ) -> Root<Dom<Self>>

source

pub fn fullscreen_element_ready_check(&self) -> bool

source

pub fn is_in_same_home_subtree<T>(&self, other: &T) -> boolwhere T: DerivedFrom<Element> + DomObject,

source

pub fn get_id(&self) -> Option<Atom>

source

pub fn get_name(&self) -> Option<Atom>

source

fn is_sequentially_focusable(&self) -> bool

source

pub(crate) fn update_sequentially_focusable_status(&self)

source§

impl Element

source§

impl Element

Trait Implementations§

source§

impl Castable for Element

source§

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

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

fn upcast<T>(&self) -> &Twhere 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 Element

source§

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

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

impl DomObject for Element

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 DomObjectWrap for Element

source§

const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::ElementBinding::Element_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::element::Element>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::element::Element>>}

Function pointer to the general wrap function type
source§

impl ElementMethods for Element

source§

fn GetInnerHTML(&self) -> Result<DOMString, Error>

source§

fn SetInnerHTML(&self, value: DOMString) -> Result<(), Error>

source§

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

source§

fn LocalName(&self) -> DOMString

source§

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

source§

fn TagName(&self) -> DOMString

source§

fn Id(&self) -> DOMString

source§

fn SetId(&self, id: DOMString)

source§

fn ClassName(&self) -> DOMString

source§

fn SetClassName(&self, class: DOMString)

source§

fn ClassList(&self) -> Root<Dom<DOMTokenList>>

source§

fn Attributes(&self) -> Root<Dom<NamedNodeMap>>

source§

fn HasAttributes(&self) -> bool

source§

fn GetAttributeNames(&self) -> Vec<DOMString>

source§

fn GetAttribute(&self, name: DOMString) -> Option<DOMString>

source§

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

source§

fn GetAttributeNode(&self, name: DOMString) -> Option<Root<Dom<Attr>>>

source§

fn GetAttributeNodeNS( &self, namespace: Option<DOMString>, local_name: DOMString ) -> Option<Root<Dom<Attr>>>

source§

fn ToggleAttribute( &self, name: DOMString, force: Option<bool> ) -> Result<bool, Error>

source§

fn SetAttribute(&self, name: DOMString, value: DOMString) -> Result<(), Error>

source§

fn SetAttributeNS( &self, namespace: Option<DOMString>, qualified_name: DOMString, value: DOMString ) -> Result<(), Error>

source§

fn SetAttributeNode( &self, attr: &Attr ) -> Result<Option<Root<Dom<Attr>>>, Error>

source§

fn SetAttributeNodeNS( &self, attr: &Attr ) -> Result<Option<Root<Dom<Attr>>>, Error>

source§

fn RemoveAttribute(&self, name: DOMString)

source§

fn RemoveAttributeNS(&self, namespace: Option<DOMString>, local_name: DOMString)

source§

fn RemoveAttributeNode(&self, attr: &Attr) -> Result<Root<Dom<Attr>>, Error>

source§

fn HasAttribute(&self, name: DOMString) -> bool

source§

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

source§

fn GetElementsByTagName( &self, localname: DOMString ) -> Root<Dom<HTMLCollection>>

source§

fn GetElementsByTagNameNS( &self, maybe_ns: Option<DOMString>, localname: DOMString ) -> Root<Dom<HTMLCollection>>

source§

fn GetElementsByClassName( &self, classes: DOMString ) -> Root<Dom<HTMLCollection>>

source§

fn GetClientRects(&self) -> Vec<Root<Dom<DOMRect>>>

source§

fn GetBoundingClientRect(&self) -> Root<Dom<DOMRect>>

source§

fn Scroll(&self, options: &ScrollToOptions)

source§

fn Scroll_(&self, x: f64, y: f64)

source§

fn ScrollTo(&self, options: &ScrollToOptions)

source§

fn ScrollTo_(&self, x: f64, y: f64)

source§

fn ScrollBy(&self, options: &ScrollToOptions)

source§

fn ScrollBy_(&self, x: f64, y: f64)

source§

fn ScrollTop(&self) -> f64

source§

fn SetScrollTop(&self, y_: f64)

source§

fn ScrollLeft(&self) -> f64

source§

fn SetScrollLeft(&self, x_: f64)

source§

fn ScrollWidth(&self) -> i32

source§

fn ScrollHeight(&self) -> i32

source§

fn ClientTop(&self) -> i32

source§

fn ClientLeft(&self) -> i32

source§

fn ClientWidth(&self) -> i32

source§

fn ClientHeight(&self) -> i32

source§

fn GetOuterHTML(&self) -> Result<DOMString, Error>

source§

fn SetOuterHTML(&self, value: DOMString) -> Result<(), Error>

source§

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

source§

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

source§

fn Children(&self) -> Root<Dom<HTMLCollection>>

source§

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

source§

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

source§

fn ChildElementCount(&self) -> u32

source§

fn Prepend(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

fn Append(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

fn ReplaceChildren(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

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

source§

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

source§

fn Before(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

fn After(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

fn ReplaceWith(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>

source§

fn Remove(&self)

source§

fn Matches(&self, selectors: DOMString) -> Result<bool, Error>

source§

fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>

source§

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

source§

fn InsertAdjacentElement( &self, where_: DOMString, element: &Element ) -> Result<Option<Root<Dom<Element>>>, Error>

source§

fn InsertAdjacentText( &self, where_: DOMString, data: DOMString ) -> Result<(), Error>

source§

fn InsertAdjacentHTML( &self, position: DOMString, text: DOMString ) -> Result<(), Error>

source§

fn EnterFormalActivationState(&self) -> Result<(), Error>

source§

fn ExitFormalActivationState(&self) -> Result<(), Error>

source§

fn RequestFullscreen(&self) -> Rc<Promise>

source§

fn AttachShadow(&self) -> Result<Root<Dom<ShadowRoot>>, Error>

source§

impl FormControlElementHelpers for Element

source§

fn as_maybe_form_control<'a>(&'a self) -> Option<&'a dyn FormControl>

source§

impl HasParent for Element

source§

fn as_parent(&self) -> &Node

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

§

type Parent = Node

source§

impl IDLInterface for Element

source§

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

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

impl MallocSizeOf for Element

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 Element

source§

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

Initializes the Reflector
source§

impl PartialEq<Element> for Element

source§

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

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

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

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

impl ToJSValConvertible for Element

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 Element

source§

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

Trace self.
source§

impl VirtualMethods for Element

source§

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

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

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

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

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

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 unbind_from_tree(&self, context: &UnbindContext<'_>)

Called when a Node is removed from a tree, where ‘tree_connected’ indicates whether the tree is part of a Document. Implements removing steps: https://dom.spec.whatwg.org/#concept-node-remove-ext
source§

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

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

fn adopting_steps(&self, old_doc: &Document)

source§

fn handle_event(&self, event: &Event)

Called during event dispatch after the bubbling phase completes.
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<Element> for Element

source§

impl DerivedFrom<Element> for HTMLAnchorElement

source§

impl DerivedFrom<Element> for HTMLAreaElement

source§

impl DerivedFrom<Element> for HTMLAudioElement

source§

impl DerivedFrom<Element> for HTMLBRElement

source§

impl DerivedFrom<Element> for HTMLBaseElement

source§

impl DerivedFrom<Element> for HTMLBodyElement

source§

impl DerivedFrom<Element> for HTMLButtonElement

source§

impl DerivedFrom<Element> for HTMLCanvasElement

source§

impl DerivedFrom<Element> for HTMLDListElement

source§

impl DerivedFrom<Element> for HTMLDataElement

source§

impl DerivedFrom<Element> for HTMLDataListElement

source§

impl DerivedFrom<Element> for HTMLDetailsElement

source§

impl DerivedFrom<Element> for HTMLDialogElement

source§

impl DerivedFrom<Element> for HTMLDirectoryElement

source§

impl DerivedFrom<Element> for HTMLDivElement

source§

impl DerivedFrom<Element> for HTMLElement

source§

impl DerivedFrom<Element> for HTMLEmbedElement

source§

impl DerivedFrom<Element> for HTMLFieldSetElement

source§

impl DerivedFrom<Element> for HTMLFontElement

source§

impl DerivedFrom<Element> for HTMLFormElement

source§

impl DerivedFrom<Element> for HTMLFrameElement

source§

impl DerivedFrom<Element> for HTMLFrameSetElement

source§

impl DerivedFrom<Element> for HTMLHRElement

source§

impl DerivedFrom<Element> for HTMLHeadElement

source§

impl DerivedFrom<Element> for HTMLHeadingElement

source§

impl DerivedFrom<Element> for HTMLHtmlElement

source§

impl DerivedFrom<Element> for HTMLIFrameElement

source§

impl DerivedFrom<Element> for HTMLImageElement

source§

impl DerivedFrom<Element> for HTMLInputElement

source§

impl DerivedFrom<Element> for HTMLLIElement

source§

impl DerivedFrom<Element> for HTMLLabelElement

source§

impl DerivedFrom<Element> for HTMLLegendElement

source§

impl DerivedFrom<Element> for HTMLLinkElement

source§

impl DerivedFrom<Element> for HTMLMapElement

source§

impl DerivedFrom<Element> for HTMLMediaElement

source§

impl DerivedFrom<Element> for HTMLMenuElement

source§

impl DerivedFrom<Element> for HTMLMetaElement

source§

impl DerivedFrom<Element> for HTMLMeterElement

source§

impl DerivedFrom<Element> for HTMLModElement

source§

impl DerivedFrom<Element> for HTMLOListElement

source§

impl DerivedFrom<Element> for HTMLObjectElement

source§

impl DerivedFrom<Element> for HTMLOptGroupElement

source§

impl DerivedFrom<Element> for HTMLOptionElement

source§

impl DerivedFrom<Element> for HTMLOutputElement

source§

impl DerivedFrom<Element> for HTMLParagraphElement

source§

impl DerivedFrom<Element> for HTMLParamElement

source§

impl DerivedFrom<Element> for HTMLPictureElement

source§

impl DerivedFrom<Element> for HTMLPreElement

source§

impl DerivedFrom<Element> for HTMLProgressElement

source§

impl DerivedFrom<Element> for HTMLQuoteElement

source§

impl DerivedFrom<Element> for HTMLScriptElement

source§

impl DerivedFrom<Element> for HTMLSelectElement

source§

impl DerivedFrom<Element> for HTMLSourceElement

source§

impl DerivedFrom<Element> for HTMLSpanElement

source§

impl DerivedFrom<Element> for HTMLStyleElement

source§

impl DerivedFrom<Element> for HTMLTableCaptionElement

source§

impl DerivedFrom<Element> for HTMLTableCellElement

source§

impl DerivedFrom<Element> for HTMLTableColElement

source§

impl DerivedFrom<Element> for HTMLTableElement

source§

impl DerivedFrom<Element> for HTMLTableRowElement

source§

impl DerivedFrom<Element> for HTMLTableSectionElement

source§

impl DerivedFrom<Element> for HTMLTemplateElement

source§

impl DerivedFrom<Element> for HTMLTextAreaElement

source§

impl DerivedFrom<Element> for HTMLTimeElement

source§

impl DerivedFrom<Element> for HTMLTitleElement

source§

impl DerivedFrom<Element> for HTMLTrackElement

source§

impl DerivedFrom<Element> for HTMLUListElement

source§

impl DerivedFrom<Element> for HTMLUnknownElement

source§

impl DerivedFrom<Element> for HTMLVideoElement

source§

impl DerivedFrom<Element> for SVGElement

source§

impl DerivedFrom<Element> for SVGGraphicsElement

source§

impl DerivedFrom<Element> for SVGSVGElement

source§

impl DerivedFrom<EventTarget> for Element

source§

impl DerivedFrom<Node> for Element

Auto Trait Implementations§

§

impl !RefUnwindSafe for Element

§

impl !Send for Element

§

impl !Sync for Element

§

impl Unpin for Element

§

impl !UnwindSafe for Element

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

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.
§

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

§

type Output = T

Should always be Self
source§

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

§

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 Twhere U: TryFrom<T>,

§

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<V, T> VZip<V> for Twhere 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> Erased for T