pub trait MessageMapper<Ms, OtherMs> {
    type SelfWithOtherMs;

    // Required method
    fn map_msg(
        self,
        f: impl FnOnce(Ms) -> OtherMs + 'static + Clone
    ) -> Self::SelfWithOtherMs;
}

Required Associated Types§

Required Methods§

source

fn map_msg( self, f: impl FnOnce(Ms) -> OtherMs + 'static + Clone ) -> Self::SelfWithOtherMs

Implementations on Foreign Types§

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Vec<El<Ms>>

§

type SelfWithOtherMs = Vec<El<OtherMs>, Global>

source§

fn map_msg( self, f: impl FnOnce(Ms) -> OtherMs + 'static + Clone ) -> Vec<El<OtherMs>>

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Vec<Node<Ms>>

§

type SelfWithOtherMs = Vec<Node<OtherMs>, Global>

source§

fn map_msg( self, f: impl FnOnce(Ms) -> OtherMs + 'static + Clone ) -> Vec<Node<OtherMs>>

Implementors§

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Node<Ms>

§

type SelfWithOtherMs = Node<OtherMs>

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for EventHandler<Ms>

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for EventHandlerManager<Ms>

source§

impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for El<Ms>

§

type SelfWithOtherMs = El<OtherMs>