pub trait MountableChild: Sized {
// Required methods
fn mount(
widget: MountedWidget,
into: &MountedChildren<Self>,
index: usize,
) -> Self;
fn unmount(self) -> MountedWidget;
fn widget(&self) -> &MountedWidget;
}
Expand description
A child in a MountedChildren
collection.
Required Methods§
sourcefn mount(
widget: MountedWidget,
into: &MountedChildren<Self>,
index: usize,
) -> Self
fn mount( widget: MountedWidget, into: &MountedChildren<Self>, index: usize, ) -> Self
Returns the mounted representation of widget
.
sourcefn unmount(self) -> MountedWidget
fn unmount(self) -> MountedWidget
Returns the widget and performs any other cleanup for this widget being unmounted.q
sourcefn widget(&self) -> &MountedWidget
fn widget(&self) -> &MountedWidget
Returns a reference to the widget.
Object Safety§
This trait is not object safe.