AdaptWidgetAny

Trait AdaptWidgetAny 

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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