#[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
sourceimpl Element
impl Element
fn __assert_parent_type(&self)
sourceimpl Element
impl Element
fn click_event_filter_by_disabled_state(&self) -> bool
sourceimpl Element
impl Element
pub fn create(
name: QualName,
is: Option<LocalName>,
document: &Document,
creator: ElementCreator,
mode: CustomElementCreationMode
) -> Root<Dom<Element>>
pub fn new_inherited(
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
pub fn new_inherited_with_state(
state: ElementState,
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
pub fn new(
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Root<Dom<Element>>
fn rare_data(&self) -> Ref<'_, Option<Box<ElementRareData>>>
fn rare_data_mut(&self) -> RefMut<'_, Option<Box<ElementRareData>>>
fn ensure_rare_data(&self) -> RefMut<'_, Box<ElementRareData>>
pub fn restyle(&self, damage: NodeDamage)
pub fn set_is(&self, is: LocalName)
pub fn get_is(&self) -> Option<LocalName>
pub fn set_custom_element_state(&self, state: CustomElementState)
pub fn get_custom_element_state(&self) -> CustomElementState
pub fn set_custom_element_definition(
&self,
definition: Rc<CustomElementDefinition>
)
pub fn get_custom_element_definition(
&self
) -> Option<Rc<CustomElementDefinition>>
pub fn clear_custom_element_definition(&self)
pub fn push_callback_reaction(
&self,
function: Rc<Function>,
args: Box<[Heap<JSVal>]>
)
pub fn push_upgrade_reaction(&self, definition: Rc<CustomElementDefinition>)
pub fn clear_reaction_queue(&self)
pub fn invoke_reactions(&self)
sourcepub fn style(&self) -> Option<Arc<ComputedValues>>
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
.
pub fn has_css_layout_box(&self) -> bool
fn potentially_scrollable(&self) -> bool
fn has_scrolling_box(&self) -> bool
fn has_overflow(&self) -> bool
sourcefn has_any_visible_overflow(&self) -> bool
fn has_any_visible_overflow(&self) -> bool
Computed value of overflow-x or overflow-y is “visible”
Computed value of overflow-x or overflow-y is “hidden”
fn shadow_root(&self) -> Option<Root<Dom<ShadowRoot>>>
pub fn is_shadow_host(&self) -> bool
sourcepub fn attach_shadow(
&self,
is_ua_widget: IsUserAgentWidget
) -> Result<Root<Dom<ShadowRoot>>, Error>
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.
pub fn detach_shadow(&self)
pub fn is_translate_enabled(&self) -> bool
pub fn directionality(&self) -> String
sourceimpl Element
impl Element
pub fn is_html_element(&self) -> bool
pub fn html_element_in_html_document(&self) -> bool
pub fn local_name(&self) -> &LocalName
pub fn parsed_name(&self, name: DOMString) -> LocalName
pub fn namespace(&self) -> &Namespace
pub fn prefix(&self) -> Ref<'_, Option<Prefix>>
pub fn set_prefix(&self, prefix: Option<Prefix>)
pub fn attrs(&self) -> Ref<'_, [Dom<Attr>]>
pub fn locate_namespace(&self, prefix: Option<DOMString>) -> Namespace
pub fn name_attribute(&self) -> Option<Atom>
pub fn style_attribute(
&self
) -> &DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
pub fn summarize(&self) -> Vec<AttrInfo>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn is_void(&self) -> bool
pub fn serialize(
&self,
traversal_scope: TraversalScope
) -> Result<DOMString, Error>
pub fn xmlSerialize(
&self,
traversal_scope: XmlTraversalScope
) -> Result<DOMString, Error>
pub fn root_element(&self) -> Root<Dom<Element>>
pub fn lookup_prefix(&self, namespace: Namespace) -> Option<DOMString>
pub fn input_method_type(&self) -> Option<InputMethodType>
pub fn is_focusable_area(&self) -> bool
pub fn is_actually_disabled(&self) -> bool
pub fn push_new_attribute(
&self,
local_name: LocalName,
value: AttrValue,
name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>
)
pub fn push_attribute(&self, attr: &Attr)
pub fn get_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
pub fn get_attribute_by_name(&self, name: DOMString) -> Option<Root<Dom<Attr>>>
pub fn set_attribute_from_parser(
&self,
qname: QualName,
value: DOMString,
prefix: Option<Prefix>
)
pub fn set_attribute(&self, name: &LocalName, value: AttrValue)
pub fn set_custom_attribute(
&self,
name: DOMString,
value: DOMString
) -> Result<(), Error>
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,
pub fn parse_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName,
value: DOMString
) -> AttrValue
pub fn remove_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
pub fn remove_attribute_by_name(
&self,
name: &LocalName
) -> Option<Root<Dom<Attr>>>
fn remove_first_matching_attribute<F>(&self, find: F) -> Option<Root<Dom<Attr>>> where
F: Fn(&Attr) -> bool,
pub fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool
pub fn set_atomic_attribute(&self, local_name: &LocalName, value: DOMString)
pub fn has_attribute(&self, local_name: &LocalName) -> bool
pub fn set_bool_attribute(&self, local_name: &LocalName, value: bool)
pub fn get_url_attribute(&self, local_name: &LocalName) -> USVString
pub fn set_url_attribute(&self, local_name: &LocalName, value: USVString)
pub fn get_string_attribute(&self, local_name: &LocalName) -> DOMString
pub fn set_string_attribute(&self, local_name: &LocalName, value: DOMString)
pub fn get_tokenlist_attribute(&self, local_name: &LocalName) -> Vec<Atom>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn set_tokenlist_attribute(&self, local_name: &LocalName, value: DOMString)
pub fn set_atomic_tokenlist_attribute(
&self,
local_name: &LocalName,
tokens: Vec<Atom>
)
pub fn get_int_attribute(&self, local_name: &LocalName, default: i32) -> i32
pub fn set_int_attribute(&self, local_name: &LocalName, value: i32)
pub fn get_uint_attribute(&self, local_name: &LocalName, default: u32) -> u32
pub fn set_uint_attribute(&self, local_name: &LocalName, value: u32)
pub fn will_mutate_attr(&self, attr: &Attr)
pub fn insert_adjacent(
&self,
where_: AdjacentPosition,
node: &Node
) -> Result<Option<Root<Dom<Node>>>, Error>
pub fn scroll(&self, x_: f64, y_: f64, behavior: ScrollBehavior)
pub fn parse_fragment(
&self,
markup: DOMString
) -> Result<Root<Dom<DocumentFragment>>, Error>
pub fn fragment_parsing_context(
owner_doc: &Document,
element: Option<&Self>
) -> Root<Dom<Self>>
pub fn fullscreen_element_ready_check(&self) -> bool
pub fn is_in_same_home_subtree<T>(&self, other: &T) -> bool where
T: DerivedFrom<Element> + DomObject,
pub fn get_id(&self) -> Option<Atom>
pub fn get_name(&self) -> Option<Atom>
fn is_sequentially_focusable(&self) -> bool
pub(crate) fn update_sequentially_focusable_status(&self)
sourceimpl Element
impl Element
fn client_rect(&self) -> Rect<i32>
pub fn as_maybe_activatable(&self) -> Option<&dyn Activatable>
pub fn as_stylesheet_owner(&self) -> Option<&dyn StylesheetOwner>
pub fn as_maybe_validatable(&self) -> Option<&dyn Validatable>
pub fn click_in_progress(&self) -> bool
pub fn set_click_in_progress(&self, click: bool)
pub fn nearest_activable_element(&self) -> Option<Root<Dom<Element>>>
pub fn get_lang(&self) -> String
pub fn state(&self) -> ElementState
pub fn set_state(&self, which: ElementState, value: bool)
sourcepub fn set_active_state(&self, value: bool)
pub fn set_active_state(&self, value: bool)
pub fn focus_state(&self) -> bool
pub fn set_focus_state(&self, value: bool)
pub fn hover_state(&self) -> bool
pub fn set_hover_state(&self, value: bool)
pub fn enabled_state(&self) -> bool
pub fn set_enabled_state(&self, value: bool)
pub fn disabled_state(&self) -> bool
pub fn set_disabled_state(&self, value: bool)
pub fn read_write_state(&self) -> bool
pub fn set_read_write_state(&self, value: bool)
pub fn placeholder_shown_state(&self) -> bool
pub fn set_placeholder_shown_state(&self, value: bool)
pub fn set_target_state(&self, value: bool)
pub fn set_fullscreen_state(&self, value: bool)
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
sourceimpl Element
impl Element
pub fn check_ancestors_disabled_state_for_form_control(&self)
pub fn check_parent_disabled_state_for_option(&self)
pub fn check_disabled_attribute(&self)
Trait Implementations
sourceimpl Castable for Element
impl Castable for Element
sourcefn is<T>(&self) -> bool where
T: DerivedFrom<Self>,
fn is<T>(&self) -> bool where
T: DerivedFrom<Self>,
Check whether a DOM object implements one of its deriving interfaces.
sourcefn upcast<T>(&self) -> &T where
T: Castable,
Self: DerivedFrom<T>,
fn upcast<T>(&self) -> &T where
T: Castable,
Self: DerivedFrom<T>,
Cast a DOM object upwards to one of the interfaces it derives from.
sourcefn downcast<T>(&self) -> Option<&T> where
T: DerivedFrom<Self>,
fn downcast<T>(&self) -> Option<&T> where
T: DerivedFrom<Self>,
Cast a DOM object downwards to one of the interfaces it might implement.
sourceimpl DomObjectWrap for Element
impl DomObjectWrap for Element
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>>
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>>
Function pointer to the general wrap function type
sourceimpl ElementMethods for Element
impl ElementMethods for Element
sourcefn GetInnerHTML(&self) -> Result<DOMString, Error>
fn GetInnerHTML(&self) -> Result<DOMString, Error>
fn GetNamespaceURI(&self) -> Option<DOMString>
fn LocalName(&self) -> DOMString
fn GetPrefix(&self) -> Option<DOMString>
fn TagName(&self) -> DOMString
fn Id(&self) -> DOMString
fn SetId(&self, id: DOMString)
fn ClassName(&self) -> DOMString
fn SetClassName(&self, class: DOMString)
fn ClassList(&self) -> Root<Dom<DOMTokenList>>
fn Attributes(&self) -> Root<Dom<NamedNodeMap>>
fn HasAttributes(&self) -> bool
fn GetAttributeNames(&self) -> Vec<DOMString>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn GetAttribute(&self, name: DOMString) -> Option<DOMString>
fn GetAttributeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<DOMString>
fn GetAttributeNode(&self, name: DOMString) -> Option<Root<Dom<Attr>>>
fn GetAttributeNodeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<Root<Dom<Attr>>>
fn ToggleAttribute(
&self,
name: DOMString,
force: Option<bool>
) -> Result<bool, Error>
fn SetAttribute(&self, name: DOMString, value: DOMString) -> Result<(), Error>
fn SetAttributeNS(
&self,
namespace: Option<DOMString>,
qualified_name: DOMString,
value: DOMString
) -> Result<(), Error>
fn SetAttributeNode(
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
fn SetAttributeNodeNS(
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
fn RemoveAttribute(&self, name: DOMString)
fn RemoveAttributeNS(&self, namespace: Option<DOMString>, local_name: DOMString)
fn RemoveAttributeNode(&self, attr: &Attr) -> Result<Root<Dom<Attr>>, Error>
fn HasAttribute(&self, name: DOMString) -> bool
fn HasAttributeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> bool
fn GetElementsByTagName(
&self,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetElementsByTagNameNS(
&self,
maybe_ns: Option<DOMString>,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetElementsByClassName(
&self,
classes: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetClientRects(&self) -> Vec<Root<Dom<DOMRect>>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn GetBoundingClientRect(&self) -> Root<Dom<DOMRect>>
fn Scroll(&self, options: &ScrollToOptions)
fn Scroll_(&self, x: f64, y: f64)
fn ScrollTo(&self, options: &ScrollToOptions)
fn ScrollTo_(&self, x: f64, y: f64)
fn ScrollBy(&self, options: &ScrollToOptions)
fn ScrollBy_(&self, x: f64, y: f64)
fn ScrollTop(&self) -> f64
fn SetScrollTop(&self, y_: f64)
fn ScrollLeft(&self) -> f64
fn SetScrollLeft(&self, x_: f64)
fn ScrollWidth(&self) -> i32
fn ScrollHeight(&self) -> i32
fn ClientTop(&self) -> i32
fn ClientLeft(&self) -> i32
fn ClientWidth(&self) -> i32
fn ClientHeight(&self) -> i32
fn GetOuterHTML(&self) -> Result<DOMString, Error>
fn SetOuterHTML(&self, value: DOMString) -> Result<(), Error>
fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>
fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>
fn Children(&self) -> Root<Dom<HTMLCollection>>
fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>
fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>
fn ChildElementCount(&self) -> u32
fn Prepend(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn Append(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn ReplaceChildren(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn QuerySelector(
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
fn QuerySelectorAll(
&self,
selectors: DOMString
) -> Result<Root<Dom<NodeList>>, Error>
fn Before(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn After(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn ReplaceWith(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
fn Remove(&self)
fn Matches(&self, selectors: DOMString) -> Result<bool, Error>
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>
fn Closest(
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
fn InsertAdjacentElement(
&self,
where_: DOMString,
element: &Element
) -> Result<Option<Root<Dom<Element>>>, Error>
fn InsertAdjacentText(
&self,
where_: DOMString,
data: DOMString
) -> Result<(), Error>
fn InsertAdjacentHTML(
&self,
position: DOMString,
text: DOMString
) -> Result<(), Error>
fn EnterFormalActivationState(&self) -> Result<(), Error>
fn ExitFormalActivationState(&self) -> Result<(), Error>
fn RequestFullscreen(&self) -> Rc<Promise>
fn AttachShadow(&self) -> Result<Root<Dom<ShadowRoot>>, Error>
sourceimpl FormControlElementHelpers for Element
impl FormControlElementHelpers for Element
fn as_maybe_form_control<'a>(&'a self) -> Option<&'a dyn FormControl>
sourceimpl IDLInterface for Element
impl IDLInterface for Element
sourceimpl MallocSizeOf for Element
impl MallocSizeOf for Element
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
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. Read more
sourceimpl MutDomObject for Element
impl MutDomObject for Element
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl ToJSValConvertible for Element
impl ToJSValConvertible for Element
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert self
to a JSVal
. JSAPI failure causes a panic.
sourceimpl VirtualMethods for Element
impl VirtualMethods for Element
sourcefn super_type(&self) -> Option<&dyn VirtualMethods>
fn super_type(&self) -> Option<&dyn VirtualMethods>
Returns self as the superclass of the implementation for this trait, if any. Read more
sourcefn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool
fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool
Returns true
if given attribute attr
affects style of the
given element. Read more
sourcefn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation<'_>)
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation<'_>)
Called when attributes of a node are mutated. https://dom.spec.whatwg.org/#attribute-is-set https://dom.spec.whatwg.org/#attribute-is-removed Read more
sourcefn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue
Returns the right AttrValue variant for the attribute with name name
on this element. Read more
sourcefn bind_to_tree(&self, context: &BindContext)
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. Read more
sourcefn unbind_from_tree(&self, context: &UnbindContext<'_>)
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 Read more
sourcefn children_changed(&self, mutation: &ChildrenMutation<'_>)
fn children_changed(&self, mutation: &ChildrenMutation<'_>)
Called on the parent when its children are changed.
sourcefn adopting_steps(&self, old_doc: &Document)
fn adopting_steps(&self, old_doc: &Document)
sourcefn handle_event(&self, event: &Event)
fn handle_event(&self, event: &Event)
Called during event dispatch after the bubbling phase completes.
sourcefn cloning_steps(
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)
fn cloning_steps(
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)
impl DerivedFrom<Element> for Element
impl DerivedFrom<Element> for HTMLAnchorElement
impl DerivedFrom<Element> for HTMLDataElement
impl DerivedFrom<Element> for HTMLDataListElement
impl DerivedFrom<Element> for HTMLDetailsElement
impl DerivedFrom<Element> for HTMLDialogElement
impl DerivedFrom<Element> for HTMLDirectoryElement
impl DerivedFrom<Element> for HTMLDivElement
impl DerivedFrom<Element> for HTMLElement
impl DerivedFrom<Element> for HTMLEmbedElement
impl DerivedFrom<Element> for HTMLFieldSetElement
impl DerivedFrom<Element> for HTMLFontElement
impl DerivedFrom<Element> for HTMLAreaElement
impl DerivedFrom<Element> for HTMLFormElement
impl DerivedFrom<Element> for HTMLFrameElement
impl DerivedFrom<Element> for HTMLFrameSetElement
impl DerivedFrom<Element> for HTMLHRElement
impl DerivedFrom<Element> for HTMLHeadElement
impl DerivedFrom<Element> for HTMLHeadingElement
impl DerivedFrom<Element> for HTMLHtmlElement
impl DerivedFrom<Element> for HTMLIFrameElement
impl DerivedFrom<Element> for HTMLImageElement
impl DerivedFrom<Element> for HTMLInputElement
impl DerivedFrom<Element> for HTMLAudioElement
impl DerivedFrom<Element> for HTMLLIElement
impl DerivedFrom<Element> for HTMLLabelElement
impl DerivedFrom<Element> for HTMLLegendElement
impl DerivedFrom<Element> for HTMLLinkElement
impl DerivedFrom<Element> for HTMLMapElement
impl DerivedFrom<Element> for HTMLMediaElement
impl DerivedFrom<Element> for HTMLMenuElement
impl DerivedFrom<Element> for HTMLMetaElement
impl DerivedFrom<Element> for HTMLMeterElement
impl DerivedFrom<Element> for HTMLModElement
impl DerivedFrom<Element> for HTMLBRElement
impl DerivedFrom<Element> for HTMLOListElement
impl DerivedFrom<Element> for HTMLObjectElement
impl DerivedFrom<Element> for HTMLOptGroupElement
impl DerivedFrom<Element> for HTMLOptionElement
impl DerivedFrom<Element> for HTMLOutputElement
impl DerivedFrom<Element> for HTMLParagraphElement
impl DerivedFrom<Element> for HTMLParamElement
impl DerivedFrom<Element> for HTMLPictureElement
impl DerivedFrom<Element> for HTMLPreElement
impl DerivedFrom<Element> for HTMLProgressElement
impl DerivedFrom<Element> for HTMLBaseElement
impl DerivedFrom<Element> for HTMLQuoteElement
impl DerivedFrom<Element> for HTMLScriptElement
impl DerivedFrom<Element> for HTMLSelectElement
impl DerivedFrom<Element> for HTMLSourceElement
impl DerivedFrom<Element> for HTMLSpanElement
impl DerivedFrom<Element> for HTMLStyleElement
impl DerivedFrom<Element> for HTMLTableCaptionElement
impl DerivedFrom<Element> for HTMLTableCellElement
impl DerivedFrom<Element> for HTMLTableColElement
impl DerivedFrom<Element> for HTMLTableElement
impl DerivedFrom<Element> for HTMLBodyElement
impl DerivedFrom<Element> for HTMLTableRowElement
impl DerivedFrom<Element> for HTMLTableSectionElement
impl DerivedFrom<Element> for HTMLTemplateElement
impl DerivedFrom<Element> for HTMLTextAreaElement
impl DerivedFrom<Element> for HTMLTimeElement
impl DerivedFrom<Element> for HTMLTitleElement
impl DerivedFrom<Element> for HTMLTrackElement
impl DerivedFrom<Element> for HTMLUListElement
impl DerivedFrom<Element> for HTMLUnknownElement
impl DerivedFrom<Element> for HTMLVideoElement
impl DerivedFrom<Element> for HTMLButtonElement
impl DerivedFrom<Element> for SVGElement
impl DerivedFrom<Element> for SVGGraphicsElement
impl DerivedFrom<Element> for SVGSVGElement
impl DerivedFrom<Element> for HTMLCanvasElement
impl DerivedFrom<Element> for HTMLDListElement
impl DerivedFrom<EventTarget> for Element
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more