Trait sauron::prelude::ElementMapMsg [−][src]
pub trait ElementMapMsg<MSG> where
MSG: 'static, { fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Element<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>>
where
MSG2: 'static; }
Expand description
Add mapping function for Element
Required methods
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Element<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Element<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
map_callback the return of the callback from MSG to MSG2