pub trait View {
// Required method
fn show(self, cx: &mut Cx<'_, '_>);
}Expand description
Something that can draw itself into a Cx.
The canonical implementation is a closure, which is what rsx! expands to.
The other impls exist so that plain values ("text", Option, Vec) can
be dropped into a child slot without ceremony.