pub trait SignalMap {
    type Key;
    type Value;

    // Required method
    fn poll_map_change(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>;
}

Required Associated Types§

Required Methods§

source

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Implementations on Foreign Types§

source§

impl<'a, A> SignalMap for &'a mut Awhere A: ?Sized + SignalMap + Unpin,

§

type Key = <A as SignalMap>::Key

§

type Value = <A as SignalMap>::Value

source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

source§

impl<A> SignalMap for Pin<A>where A: Unpin + DerefMut, A::Target: SignalMap,

§

type Key = <<A as Deref>::Target as SignalMap>::Key

§

type Value = <<A as Deref>::Target as SignalMap>::Value

source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

source§

impl<A> SignalMap for Box<A>where A: ?Sized + SignalMap + Unpin,

§

type Key = <A as SignalMap>::Key

§

type Value = <A as SignalMap>::Value

source§

fn poll_map_change( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>

Implementors§

source§

impl<A, B, F> SignalMap for MapValue<A, F>where A: SignalMap, F: FnMut(A::Value) -> B,

§

type Key = <A as SignalMap>::Key

§

type Value = B

source§

impl<A, B, F> SignalMap for MapValueSignal<A, B, F>where A: SignalMap, A::Key: Clone + Ord, B: Signal, F: FnMut(A::Value) -> B,

§

type Key = <A as SignalMap>::Key

§

type Value = <B as Signal>::Item

source§

impl<A, K, V> SignalMap for Always<A>where A: IntoIterator<Item = (K, V)>,

§

type Key = K

§

type Value = V

source§

impl<K, V> SignalMap for MutableSignalMap<K, V>

§

type Key = K

§

type Value = V