pub trait IntoView {
// Required method
fn into_view(&self) -> View;
}Expand description
Anything that can be turned into a View for child interpolation in the
view!{} macro. The trait takes &self so interpolating {count} does
not move count out of the surrounding scope — important because the
same signal is typically referenced from multiple event handlers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl IntoView for View
impl<T: Clone + Serialize + 'static> IntoView for &Signal<T>
impl<T: Clone + Serialize + 'static> IntoView for Signal<T>
Signal<T> interpolated inside view!{ {count} } becomes a reactive
<resuma-dyn> node bound to the signal id.