Struct leptos::HtmlElement

source ·
pub struct HtmlElement<El>{ /* private fields */ }
Expand description

Represents an HTML element.

Implementations§

source§

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

source

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

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>>) -> HtmlElement<El>

Adds an id to the element.

source

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

Binds the element reference to NodeRef.

source

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

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 ) -> HtmlElement<El>

Adds an attribute to this element.

source

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

Adds multiple attributes to the element

source

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

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>>) -> HtmlElement<El>

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 ) -> HtmlElement<El>
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 ) -> HtmlElement<El>

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 ) -> HtmlElement<El>

Sets a property on an element.

source

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

Adds an event listener to this element.

source

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

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) -> HtmlElement<El>

Adds a child to this element.

source

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

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> HtmlElement<El>
where El: ElementDescriptor + Clone + 'static,

source

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

Bind the directive to the element.

Trait Implementations§

source§

impl<El> 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>( self, event: E, handler: impl FnMut(<E as EventDescriptor>::EventType) + 'static ) -> HtmlElement<T>
where E: EventDescriptor + 'static,

Adds handler to specified event
source§

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

Same as add, but with EventHandler
source§

impl<El> Debug for HtmlElement<El>

source§

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

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) -> &<HtmlElement<El> as Deref>::Target

Dereferences the value.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<El> IntoView for HtmlElement<El>

source§

fn into_view(self) -> View

Converts the value into View.

Auto Trait Implementations§

§

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,