pub struct InnerHtml<T> { /* private fields */ }
Expand description
Sets the inner HTML of an element.
Trait Implementations§
Source§impl<T> Attribute for InnerHtml<T>where
T: InnerHtmlValue,
impl<T> Attribute for InnerHtml<T>where
T: InnerHtmlValue,
Source§const MIN_LENGTH: usize = 0usize
const MIN_LENGTH: usize = 0usize
The minimum length of this attribute in HTML.
Source§type AsyncOutput = InnerHtml<<T as InnerHtmlValue>::AsyncOutput>
type AsyncOutput = InnerHtml<<T as InnerHtmlValue>::AsyncOutput>
The type once all async data have loaded.
Source§type State = <T as InnerHtmlValue>::State
type State = <T as InnerHtmlValue>::State
The state that should be retained between building and rebuilding.
Source§type Cloneable = InnerHtml<<T as InnerHtmlValue>::Cloneable>
type Cloneable = InnerHtml<<T as InnerHtmlValue>::Cloneable>
An equivalent to this attribute that can be cloned to be shared across elements.
Source§type CloneableOwned = InnerHtml<<T as InnerHtmlValue>::CloneableOwned>
type CloneableOwned = InnerHtml<<T as InnerHtmlValue>::CloneableOwned>
An equivalent to this attribute that can be cloned to be shared across elements, and
captures no references shorter than
'static
.Source§fn to_html(
self,
_buf: &mut String,
_class: &mut String,
_style: &mut String,
inner_html: &mut String,
)
fn to_html( self, _buf: &mut String, _class: &mut String, _style: &mut String, inner_html: &mut String, )
Renders the attribute to HTML. Read more
Source§fn hydrate<const FROM_SERVER: bool>(
self,
el: &Element,
) -> <InnerHtml<T> as Attribute>::State
fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <InnerHtml<T> as Attribute>::State
Adds interactivity as necessary, given DOM nodes that were created from HTML that has
either been rendered on the server, or cloned for a
<template>
.Source§fn build(self, el: &Element) -> <InnerHtml<T> as Attribute>::State
fn build(self, el: &Element) -> <InnerHtml<T> as Attribute>::State
Adds this attribute to the element during client-side rendering.
Source§fn rebuild(self, state: &mut <InnerHtml<T> as Attribute>::State)
fn rebuild(self, state: &mut <InnerHtml<T> as Attribute>::State)
Applies a new value for the attribute.
Source§fn into_cloneable(self) -> <InnerHtml<T> as Attribute>::Cloneable
fn into_cloneable(self) -> <InnerHtml<T> as Attribute>::Cloneable
Converts this attribute into an equivalent that can be cloned.
Source§fn into_cloneable_owned(self) -> <InnerHtml<T> as Attribute>::CloneableOwned
fn into_cloneable_owned(self) -> <InnerHtml<T> as Attribute>::CloneableOwned
Converts this attributes into an equivalent that can be cloned and is
'static
.Source§fn dry_resolve(&mut self)
fn dry_resolve(&mut self)
“Runs” the attribute without other side effects. For primitive types, this is a no-op. For
reactive types, this can be used to gather data about reactivity or about asynchronous data
that needs to be loaded.
Source§impl<T> NextAttribute for InnerHtml<T>where
T: InnerHtmlValue,
impl<T> NextAttribute for InnerHtml<T>where
T: InnerHtmlValue,
Auto Trait Implementations§
impl<T> Freeze for InnerHtml<T>where
T: Freeze,
impl<T> RefUnwindSafe for InnerHtml<T>where
T: RefUnwindSafe,
impl<T> Send for InnerHtml<T>where
T: Send,
impl<T> Sync for InnerHtml<T>where
T: Sync,
impl<T> Unpin for InnerHtml<T>where
T: Unpin,
impl<T> UnwindSafe for InnerHtml<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoAnyAttribute for T
impl<T> IntoAnyAttribute for T
Source§fn into_any_attr(self) -> AnyAttribute
fn into_any_attr(self) -> AnyAttribute
Wraps the given attribute.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.