Trait GlobalProps
pub trait GlobalProps:
Sized
+ GlobalAttributes
+ AsHtmlNode {
// Provided methods
fn dangerously_set_inner_html(
self,
inner_html: impl Into<Cow<'static, str>>,
) -> Self { ... }
fn children(self, children: impl Into<View>) -> Self { ... }
fn ref(self, noderef: NodeRef) -> Self { ... }
fn spread(self, attributes: Attributes) -> Self { ... }
}
Expand description
Props that are available on all elements.
Provided Methods§
fn dangerously_set_inner_html(
self,
inner_html: impl Into<Cow<'static, str>>,
) -> Self
fn dangerously_set_inner_html( self, inner_html: impl Into<Cow<'static, str>>, ) -> Self
Set the inner html of an element.
fn spread(self, attributes: Attributes) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.