pub trait ComponentProps {
// Required methods
fn get_children(&self) -> Vec<Element>;
fn set_children(&mut self, children: Vec<Element>);
}Expand description
Trait for component props that support children
Required Methods§
Sourcefn get_children(&self) -> Vec<Element>
fn get_children(&self) -> Vec<Element>
Get the children VNodes (returns a clone for simplicity)
Sourcefn set_children(&mut self, children: Vec<Element>)
fn set_children(&mut self, children: Vec<Element>)
Set the children VNodes
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".