pub trait IntoView<A> {
// Required method
fn into_view(self) -> View<A>;
}Expand description
Converts a declarative widget builder into a runtime View node.
Application code returns View<A> and calls .into_view() on the root builder
(re-export this trait in the app view/prelude, not in ailloli_ui::prelude). Framework uses it
for .child, Window::content, and custom widgets.
§Examples
use ailloli_ui_runtime::component::{IntoView, View};
let view: View<()> = View::empty().into_view();
assert!(view.children.is_empty());