pub struct HtmlElement<El: ElementDescriptor> { /* private fields */ }
Expand description

Represents an HTML element.

Implementations§

source§

impl<El: ElementDescriptor + 'static> HtmlElement<El>

source

pub fn with_view_marker(self, marker: impl Into<String>) -> Self

Adds an optional marker indicating the view macro source.

source

pub fn into_any(self) -> HtmlElement<AnyElement>

Converts this element into HtmlElement<AnyElement>.

source

pub fn id(self, id: impl Into<Oco<'static, str>>) -> Self

Adds an id to the element.

source

pub fn node_ref(self, node_ref: NodeRef<El>) -> Self
where Self: Clone,

Binds the element reference to NodeRef.

source

pub fn on_mount(self, f: impl FnOnce(Self) + 'static) -> Self

Runs the callback when this element has been mounted to the DOM.

§Important Note

This method will only ever run at most once. If this element is unmounted and remounted, or moved somewhere else, it will not re-run unless you call this method again.

source

pub fn is_mounted(&self) -> bool

Checks to see if this element is mounted to the DOM as a child of body.

This method will always return false on non-wasm CSR targets.

source

pub fn attr( self, name: impl Into<Oco<'static, str>>, attr: impl IntoAttribute ) -> Self

Adds an attribute to this element.

source

pub fn attrs( self, attrs: impl IntoIterator<Item = (&'static str, Attribute)> ) -> Self

Adds multiple attributes to the element.

source

pub fn bindings<B: Into<Binding>>( self, bindings: impl IntoIterator<Item = B> ) -> Self

Adds multiple bindings (attributes or event handlers) to the element.

source

pub fn class( self, name: impl Into<Oco<'static, str>>, class: impl IntoClass ) -> Self

Adds a class to an element.

Note: In the builder syntax, this will be overwritten by the class attribute if you use .attr("class", /* */). In the view macro, they are automatically re-ordered so that this over-writing does not happen.

§Panics

This directly uses the browser’s classList API, which means it will throw a runtime error if you pass more than a single class name. If you want to pass more than one class name at a time, you can use HtmlElement::classes.

source

pub fn classes(self, classes: impl Into<Oco<'static, str>>) -> Self

Adds a list of classes separated by ASCII whitespace to an element.

source

pub fn dyn_classes<I, C>(self, classes_signal: impl Fn() -> I + 'static) -> Self
where I: IntoIterator<Item = C>, C: Into<Oco<'static, str>>,

Sets the class on the element as the class signal changes.

source

pub fn style( self, name: impl Into<Oco<'static, str>>, style: impl IntoStyle ) -> Self

Sets a style on an element.

Note: In the builder syntax, this will be overwritten by the style attribute if you use .attr("style", /* */). In the view macro, they are automatically re-ordered so that this over-writing does not happen.

source

pub fn prop( self, name: impl Into<Oco<'static, str>>, value: impl IntoProperty ) -> Self

Sets a property on an element.

source

pub fn on<E: EventDescriptor + 'static>( self, event: E, event_handler: impl FnMut(E::EventType) + 'static ) -> Self

Adds an event listener to this element.

source

pub fn optional_event<E: EventDescriptor + 'static>( self, event: E, event_handler: Option<impl FnMut(E::EventType) + 'static> ) -> Self

Optionally adds an event listener to this element.

§Example
#[component]
pub fn Input(
    #[prop(optional)] value: Option<RwSignal<String>>,
) -> impl IntoView {
    view! {  <input/> }
        // only add event if `value` is `Some(signal)`
        .optional_event(
            ev::input,
            value.map(|value| move |ev| value.set(event_target_value(&ev))),
        )
}
source

pub fn child(self, child: impl IntoView) -> Self

Adds a child to this element.

source

pub fn inner_html(self, html: impl Into<Oco<'static, str>>) -> Self

Sets the inner HTML of this element from the provided string slice.

§Security

Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.

source§

impl<El: ElementDescriptor + Clone + 'static> HtmlElement<El>

source

pub fn directive<T: ?Sized, P: Clone + 'static>( self, handler: impl Directive<T, P> + 'static, param: P ) -> Self

Bind the directive to the element.

Trait Implementations§

source§

impl<El: Clone + ElementDescriptor> Clone for HtmlElement<El>

source§

fn clone(&self) -> HtmlElement<El>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> DOMEventResponder for HtmlElement<T>
where T: ElementDescriptor + 'static,

source§

fn add<E: EventDescriptor + 'static>( self, event: E, handler: impl FnMut(E::EventType) + 'static ) -> Self

Adds handler to specified event
source§

fn add_handler(self, handler: impl EventHandler) -> Self

Same as add, but with EventHandler
source§

impl<El: ElementDescriptor> Debug for HtmlElement<El>

source§

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

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

impl<El> Deref for HtmlElement<El>

§

type Target = <El as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<HtmlElement<A>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<A>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<A>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<A>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Abbr>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Abbr>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Address>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Address>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Animate>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Animate>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<AnimateMotion>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<AnimateMotion>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<AnimateTransform>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<AnimateTransform>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Annotation>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Annotation>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<AnnotationXml>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<AnnotationXml>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Area>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Area>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Article>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Article>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Aside>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Aside>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Audio>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Audio>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<B>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<B>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Base>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Base>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Bdi>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Bdi>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Bdo>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Bdo>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Blockquote>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Blockquote>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Body>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Body>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Br>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Br>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Button>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Button>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Canvas>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Canvas>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Caption>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Caption>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Circle>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Circle>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Cite>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Cite>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<ClipPath>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<ClipPath>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Code>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Code>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Col>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Col>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Colgroup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Colgroup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Data>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Data>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Datalist>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Datalist>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Dd>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Dd>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Defs>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Defs>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Del>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Del>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Desc>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Desc>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Details>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Details>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Dfn>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Dfn>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Dialog>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Dialog>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Discard>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Discard>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Div>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Div>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Dl>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Dl>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Dt>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Dt>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ellipse>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ellipse>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Em>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Em>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Embed>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Embed>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeBlend>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeBlend>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeColorMatrix>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeColorMatrix>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeComponentTransfer>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeComponentTransfer>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeComposite>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeComposite>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeConvolveMatrix>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeConvolveMatrix>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeDiffuseLighting>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeDiffuseLighting>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeDisplacementMap>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeDisplacementMap>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeDistantLight>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeDistantLight>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeDropShadow>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeDropShadow>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeFlood>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeFlood>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeFuncA>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeFuncA>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeFuncB>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeFuncB>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeFuncG>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeFuncG>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeFuncR>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeFuncR>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeGaussianBlur>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeGaussianBlur>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeImage>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeImage>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeMerge>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeMerge>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeMergeNode>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeMergeNode>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeMorphology>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeMorphology>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeOffset>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeOffset>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FePointLight>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FePointLight>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeSpecularLighting>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeSpecularLighting>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeSpotLight>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeSpotLight>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeTile>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeTile>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<FeTurbulence>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<FeTurbulence>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Fieldset>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Fieldset>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Figcaption>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Figcaption>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Figure>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Figure>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Filter>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Filter>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Footer>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Footer>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<ForeignObject>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<ForeignObject>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Form>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Form>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<G>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<G>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H1>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H1>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H2>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H2>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H3>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H3>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H4>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H4>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H5>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H5>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<H6>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<H6>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Hatch>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Hatch>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Hatchpath>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Hatchpath>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Head>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Head>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Header>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Header>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Hgroup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Hgroup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Hr>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Hr>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Html>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Html>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<I>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<I>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Iframe>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Iframe>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Image>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Image>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Img>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Img>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Input>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Input>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ins>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ins>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Kbd>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Kbd>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Label>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Label>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Legend>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Legend>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Li>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Li>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Line>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Line>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<LinearGradient>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<LinearGradient>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Link>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Link>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Maction>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Maction>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Main>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Main>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Map>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Map>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mark>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mark>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Marker>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Marker>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mask>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mask>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Math>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Math>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Math>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Math>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Menclose>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Menclose>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Menu>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Menu>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Merror>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Merror>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Meta>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Meta>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Metadata>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Metadata>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Meter>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Meter>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mfenced>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mfenced>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mfrac>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mfrac>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mi>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mi>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mmultiscripts>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mmultiscripts>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mn>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mn>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mo>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mo>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mover>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mover>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mpadded>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mpadded>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mpath>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mpath>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mphantom>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mphantom>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mprescripts>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mprescripts>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mroot>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mroot>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mrow>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mrow>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ms>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ms>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mspace>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mspace>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Msqrt>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Msqrt>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mstyle>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mstyle>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Msub>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Msub>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Msubsup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Msubsup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Msup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Msup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mtable>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mtable>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mtd>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mtd>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mtext>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mtext>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Mtr>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Mtr>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Munder>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Munder>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Munderover>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Munderover>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Nav>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Nav>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Noscript>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Noscript>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Object>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Object>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ol>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ol>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Optgroup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Optgroup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Option_>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Option_>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Output>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Output>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<P>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<P>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Param>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Param>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Path>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Path>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Pattern>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Pattern>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Picture>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Picture>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Polygon>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Polygon>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Polyline>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Polyline>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Portal>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Portal>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Pre>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Pre>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Progress>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Progress>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Q>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Q>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<RadialGradient>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<RadialGradient>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Rect>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Rect>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Rp>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Rp>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Rt>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Rt>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ruby>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ruby>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<S>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<S>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Samp>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Samp>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Script>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Script>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Script>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Script>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Section>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Section>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Select>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Select>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Semantics>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Semantics>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Set>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Set>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Slot>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Slot>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Small>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Small>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Source>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Source>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Span>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Span>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Stop>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Stop>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Strong>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Strong>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Style>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Style>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Style>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Style>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Sub>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Sub>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Summary>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Summary>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Sup>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Sup>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Svg>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Svg>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Svg>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Svg>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Switch>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Switch>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Symbol>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Symbol>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Table>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Table>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Tbody>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Tbody>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Td>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Td>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Template>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Template>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Text>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Text>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<TextPath>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<TextPath>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Textarea>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Textarea>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Tfoot>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Tfoot>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Th>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Th>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Thead>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Thead>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Time>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Time>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Title>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Title>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Title>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Title>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Tr>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Tr>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Track>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Track>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Tspan>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Tspan>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<U>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<U>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Ul>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Ul>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Use>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Use>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Var>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Var>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Video>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Video>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<View>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<View>) -> Self

Converts to this type from the input type.
source§

impl From<HtmlElement<Wbr>> for HtmlElement<AnyElement>

source§

fn from(element: HtmlElement<Wbr>) -> Self

Converts to this type from the input type.
source§

impl<El: ElementDescriptor> IntoView for HtmlElement<El>

source§

fn into_view(self) -> View

Converts the value into View.

Auto Trait Implementations§

§

impl<El> Freeze for HtmlElement<El>
where El: Freeze,

§

impl<El> !RefUnwindSafe for HtmlElement<El>

§

impl<El> !Send for HtmlElement<El>

§

impl<El> !Sync for HtmlElement<El>

§

impl<El> Unpin for HtmlElement<El>
where El: Unpin,

§

impl<El> !UnwindSafe for HtmlElement<El>

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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<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<El> ElementDescriptorBounds for El
where El: Debug,