pub trait AdaptWidgetAny: Widget<Data = ()> + Sized {
    // Provided method
    fn map_any<A>(self) -> MapAny<A, Self> { ... }
}
Expand description

Provides .map_any()

TODO: move to AdaptWidget with where Self::Data == () constraint once supported (Rust#20041).

Provided Methods§

source

fn map_any<A>(self) -> MapAny<A, Self>

Map any input data to ()

Returns a wrapper around the input widget.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<W> AdaptWidgetAny for W
where W: Widget<Data = ()>,