pub trait View: 'static {
// Required method
fn build(self, ui: &Ui) -> NodeId;
}Expand description
Something that can build itself into the node tree.
Component functions run once and return a View. Building creates the
nodes and the effects that keep their props up to date.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".