Trait sauron_core::ElementMapMsg
source · pub trait ElementMapMsg<MSG>where
MSG: 'static,{
// Required method
fn map_callback<MSG2>(self, cb: Listener<MSG, MSG2>) -> Element<MSG2>
where MSG2: 'static;
}
Expand description
Add mapping function for Element
Required Methods§
sourcefn map_callback<MSG2>(self, cb: Listener<MSG, MSG2>) -> Element<MSG2>where
MSG2: 'static,
fn map_callback<MSG2>(self, cb: Listener<MSG, MSG2>) -> Element<MSG2>where MSG2: 'static,
map_callback the return of the callback from MSG to MSG2