pub fn map<F, B>(self, f: F) -> Element<'a, B, Renderer>
    where
        Message: 'static + Copy,
        Renderer: 'a,
        B: 'static,
        F: 'static + Fn(Message) -> B,
    {
        Element {
            widget: Box::new(Map::new(self.widget, f)),
        }
    }
/// Applies a transformation to the produced message of the [`Element`].
///
/// This method is useful when you want to decouple different parts of your
/// UI.
///
/// [`Element`]: struct.Element.html
///
/// # Example
/// TODO
Applies a transformation to the produced message of the [`Element`].
This method is useful when you want to decouple different parts of your
UI.


Applies a transformation to the produced message of the [ ` Element ` ] . This method is useful when you want to decouple different parts of your UI .
pub fn map<F, B>(self, f: F) -> Element<'a, B, Renderer>
    where
        Message: 'static + Copy,
        Renderer: 'a,
        B: 'static,
        F: 'static + Fn(Message) -> B,
    {
        Element {
            widget: Box::new(Map::new(self.widget, f)),
        }
    }
pub fn map < F , B > ( self , f : F ) -> Element < ' a , B , Renderer > where Message : ' static + Copy , Renderer : ' a , B : ' static , F : ' static + Fn ( Message ) -> B , { Element { widget : Box :: new ( Map :: new ( self . widget , f ) ) , } }
Applies a transformation to the produced message of the [`Element`].
Applies a transformation to the produced message of the [ ` Element ` ] .
self
f
F
self
f
F
example
None