Trait sauron::prelude::NodeMapMsg [−][src]
pub trait NodeMapMsg<MSG> where
MSG: 'static, { fn map_msg<F, MSG2>(
self,
func: F
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>>
where
MSG2: 'static,
F: Fn(MSG) -> MSG2 + 'static; fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>>
where
MSG2: 'static; }
Expand description
Add mapping function for Node, Element, Attribute, AttValue,
Required methods
map the msg of callback of this node
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
map the msg of callback of this element node