Trait cushy::context::MapManagedWidget

source ·
pub trait MapManagedWidget<T> {
    type Result;

    // Required method
    fn map(self, map: impl FnOnce(MountedWidget) -> T) -> Self::Result;
}
Expand description

A type that can produce another type when provided a MountedWidget.

Required Associated Types§

source

type Result

The result of the mapping operation.

Required Methods§

source

fn map(self, map: impl FnOnce(MountedWidget) -> T) -> Self::Result

Call map with a MountedWidget.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> MapManagedWidget<T> for Option<MountedWidget>

§

type Result = Option<T>

source§

fn map(self, map: impl FnOnce(MountedWidget) -> T) -> Self::Result

Implementors§