pub trait Children<R: Renderer> {
// Required methods
fn mount_component(
&self,
at: &R::Node,
name: &str,
props: Map<String, Value>,
);
fn mount_slot(
&self,
at: &R::Node,
layout: &str,
slot: &str,
props: Map<String, Value>,
);
fn unmount(&self, at: &R::Node);
// Provided methods
fn binds(&self, _name: &str) -> bool { ... }
fn mount_bound(
&self,
at: &R::Node,
_layout: &str,
name: &str,
props: Map<String, Value>,
) { ... }
}Expand description
The engine’s side of a mount: fills a component or slot node’s
element, and empties it when the node goes.
Required Methods§
Sourcefn mount_component(&self, at: &R::Node, name: &str, props: Map<String, Value>)
fn mount_component(&self, at: &R::Node, name: &str, props: Map<String, Value>)
name’s instance into at (its element), with props.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".