pub struct MapValueSignal<A, B, F>where
    A: SignalMap,
    B: Signal,{ /* private fields */ }

Trait Implementations§

source§

impl<A, B, F: Debug> Debug for MapValueSignal<A, B, F>where A: SignalMap + Debug, B: Signal + Debug, A::Key: Debug, B::Item: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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§

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

source§

impl<'pin, A, B, F> Unpin for MapValueSignal<A, B, F>where A: SignalMap, B: Signal, __MapValueSignal<'pin, A, B, F>: Unpin,

Auto Trait Implementations§

§

impl<A, B, F> RefUnwindSafe for MapValueSignal<A, B, F>where A: RefUnwindSafe, B: RefUnwindSafe, F: RefUnwindSafe, <B as Signal>::Item: RefUnwindSafe, <A as SignalMap>::Key: RefUnwindSafe,

§

impl<A, B, F> Send for MapValueSignal<A, B, F>where A: Send, B: Send, F: Send, <B as Signal>::Item: Send, <A as SignalMap>::Key: Send,

§

impl<A, B, F> Sync for MapValueSignal<A, B, F>where A: Sync, B: Sync, F: Sync, <B as Signal>::Item: Sync, <A as SignalMap>::Key: Sync,

§

impl<A, B, F> UnwindSafe for MapValueSignal<A, B, F>where A: UnwindSafe, B: RefUnwindSafe, F: UnwindSafe, <B as Signal>::Item: UnwindSafe, <A as SignalMap>::Key: UnwindSafe + RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

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,

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.