Skip to main content

IntoWidget

Trait IntoWidget 

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

Source

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

Implementations on Foreign Types§

Source§

impl IntoWidget<WidgetRefKind> for Rc<dyn Widget>

Source§

fn into_widget(self) -> Rc<dyn Widget>

Implementors§

Source§

impl IntoWidget<ClipPathShapeKind> for ClipPathShape

Source§

impl IntoWidget<DefaultSelectionStyleMergeKind> for DefaultSelectionStyleMerge

Source§

impl IntoWidget<DefaultTextStyleMergeKind> for DefaultTextStyleMerge

Source§

impl IntoWidget<LocalizationsOverrideKind> for LocalizationsOverride

Source§

impl IntoWidget<PreferredSizeWidgetRefKind> for PreferredSizeWidgetRef

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverFixedExtentListBuilder

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverFixedExtentListList

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridBuilder

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridCount

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridExtent

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverGridList

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverListBuilder

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverListList

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverListSeparated

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverPrototypeExtentListBuilder

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverPrototypeExtentListList

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverVariedExtentListBuilder

Source§

impl IntoWidget<SliverMultiBoxAdaptorKind> for SliverVariedExtentListList

Source§

impl IntoWidget<StatefulKind> for PageViewBuilder

Source§

impl IntoWidget<StatelessKind> for GridViewBuilder

Source§

impl IntoWidget<StatelessKind> for GridViewCount

Source§

impl IntoWidget<StatelessKind> for GridViewExtent

Source§

impl IntoWidget<StatelessKind> for ListViewBuilder

Source§

impl IntoWidget<StatelessKind> for ListViewSeparated

Source§

impl<W> IntoWidget<AnimatedKind> for W
where W: AnimatedWidget,

Source§

impl<W> IntoWidget<InheritedKind> for W
where W: InheritedWidget,

Source§

impl<W> IntoWidget<InheritedModelKind> for W
where W: InheritedModel,

Source§

impl<W> IntoWidget<InheritedNotifierKind> for W

Source§

impl<W> IntoWidget<LeafRenderObjectKind> for W

Source§

impl<W> IntoWidget<MultiChildRenderObjectKind> for W

Source§

impl<W> IntoWidget<ParentDataKind> for W

Source§

impl<W> IntoWidget<SingleChildRenderObjectKind> for W

Source§

impl<W> IntoWidget<SliverMultiBoxAdaptorKind> for W

Source§

impl<W> IntoWidget<SlottedMultiChildRenderObjectKind> for W

Source§

impl<W> IntoWidget<StatefulKind> for W
where W: StatefulWidget,

Source§

impl<W> IntoWidget<StatelessKind> for W
where W: StatelessWidget,

Source§

impl<W> IntoWidget<StatusTransitionKind> for W

Source§

impl<W> IntoWidget<TreeNodeKind> for W
where W: Widget,