Skip to main content

ComponentProps

Trait ComponentProps 

Source
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§

Source

fn get_children(&self) -> Vec<Element>

Get the children VNodes (returns a clone for simplicity)

Source

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".

Implementors§