pub trait IntoWidget<Kind> {
// Required method
fn into_widget(self) -> Rc<dyn Widget>;
}Expand description
The conversion of a widget value into a tree node.
Every widget kind gets a blanket implementation, told apart by the phantom Kind so the
implementations do not overlap; a call site infers it. A WidgetRef converts to itself, and
a widget that is its own tree node converts as itself (TreeNodeKind).
Required Methods§
Sourcefn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".