Trait sauron::prelude::AttValueMapMsg [−][src]
pub trait AttValueMapMsg<MSG> where
MSG: 'static, { fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> AttValue<AttributeValue, Callback<Event, MSG2>>
where
MSG2: 'static; fn get_callback(&self) -> Option<&Callback<Event, MSG>>; fn is_callback(&self) -> bool; }
Expand description
Add mapping function for AttValue
Required methods
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> AttValue<AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> AttValue<AttributeValue, Callback<Event, MSG2>> where
MSG2: 'static,
transform att_value such that MSG becomes MSG2
fn get_callback(&self) -> Option<&Callback<Event, MSG>>
fn get_callback(&self) -> Option<&Callback<Event, MSG>>
return a reference to the callback if it is a callback
fn is_callback(&self) -> bool
fn is_callback(&self) -> bool
return true if this is a callback