pub trait ElementNameViewParts {
// Required method
fn into_view_parts(self, cx: &Cx, parts: &mut PartsWriter<'_>);
}Expand description
Converts a value used as an element name into view parts.
When this trait is implemented on a type, it can be used in the element name position of an
element in the view! macro:
view! {
<(tag_name)></(tag_name)>
}Required Methods§
Sourcefn into_view_parts(self, cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this element name to the view being built.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".