pub trait SignalMapExt: SignalMap {
    // Provided methods
    fn map_value<A, F>(self, callback: F) -> MapValue<Self, F>
       where F: FnMut(Self::Value) -> A,
             Self: Sized { ... }
    fn map_value_signal<A, F>(self, callback: F) -> MapValueSignal<Self, A, F>
       where A: Signal,
             F: FnMut(Self::Value) -> A,
             Self: Sized { ... }
    fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self>
       where Self::Key: PartialEq,
             Self::Value: Clone,
             Self: Sized { ... }
    fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F> 
       where U: Future<Output = ()>,
             F: FnMut(MapDiff<Self::Key, Self::Value>) -> U,
             Self: Sized { ... }
    fn poll_map_change_unpin(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>
       where Self: Unpin + Sized { ... }
    fn boxed<'a>(
        self
    ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + Send + 'a>>
       where Self: Sized + Send + 'a { ... }
    fn boxed_local<'a>(
        self
    ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + 'a>>
       where Self: Sized + 'a { ... }
}

Provided Methods§

source

fn map_value<A, F>(self, callback: F) -> MapValue<Self, F>where F: FnMut(Self::Value) -> A, Self: Sized,

source

fn map_value_signal<A, F>(self, callback: F) -> MapValueSignal<Self, A, F>where A: Signal, F: FnMut(Self::Value) -> A, Self: Sized,

source

fn key_cloned(self, key: Self::Key) -> MapWatchKeySignal<Self>where Self::Key: PartialEq, Self::Value: Clone, Self: Sized,

Returns a signal that tracks the value of a particular key in the map.

source

fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F> where U: Future<Output = ()>, F: FnMut(MapDiff<Self::Key, Self::Value>) -> U, Self: Sized,

source

fn poll_map_change_unpin( &mut self, cx: &mut Context<'_> ) -> Poll<Option<MapDiff<Self::Key, Self::Value>>>where Self: Unpin + Sized,

A convenience for calling SignalMap::poll_map_change on Unpin types.

source

fn boxed<'a>( self ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + Send + 'a>>where Self: Sized + Send + 'a,

source

fn boxed_local<'a>( self ) -> Pin<Box<dyn SignalMap<Key = Self::Key, Value = Self::Value> + 'a>>where Self: Sized + 'a,

Implementors§

source§

impl<T> SignalMapExt for Twhere T: SignalMap + ?Sized,