pub trait NetworkMap<D: Data, IntoD: Data>: Network<D> {
    type MappedNetwork: Network<IntoD>;

    // Required method
    fn map(self) -> Self::MappedNetwork;
}

Required Associated Types§

Required Methods§

source

fn map(self) -> Self::MappedNetwork

Implementors§

source§

impl<D: Data, IntoD: Data + Into<D> + TryFrom<D>, N: Network<D>> NetworkMap<D, IntoD> for N
where IntoD::Error: Display,

§

type MappedNetwork = SimpleNetwork<IntoD, MapReceiver<D, <N as Network<D>>::R>, MapSender<D, <N as Network<D>>::S>>