[−][src]Struct futures_signals::signal_vec::MapSignal
Trait Implementations
impl<A, B, F> SignalVec for MapSignal<A, B, F> where
A: SignalVec,
B: Signal,
F: FnMut(A::Item) -> B,
[src]
A: SignalVec,
B: Signal,
F: FnMut(A::Item) -> B,
type Item = B::Item
fn poll_vec_change(
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<VecDiff<Self::Item>>>
[src]
self: Pin<&mut Self>,
cx: &mut Context
) -> Poll<Option<VecDiff<Self::Item>>>
impl<A, B, F> Unpin for MapSignal<A, B, F> where
A: Unpin,
B: Signal,
[src]
A: Unpin,
B: Signal,
impl<A: Debug, B: Debug, F: Debug> Debug for MapSignal<A, B, F> where
B: Signal,
B::Item: Debug,
[src]
B: Signal,
B::Item: Debug,
Auto Trait Implementations
impl<A, B, F> Send for MapSignal<A, B, F> where
A: Send,
B: Send,
F: Send,
<B as Signal>::Item: Send,
A: Send,
B: Send,
F: Send,
<B as Signal>::Item: Send,
impl<A, B, F> Sync for MapSignal<A, B, F> where
A: Sync,
B: Sync,
F: Sync,
<B as Signal>::Item: Sync,
A: Sync,
B: Sync,
F: Sync,
<B as Signal>::Item: Sync,
impl<A, B, F> RefUnwindSafe for MapSignal<A, B, F> where
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
<B as Signal>::Item: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
<B as Signal>::Item: RefUnwindSafe,
impl<A, B, F> UnwindSafe for MapSignal<A, B, F> where
A: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
<B as Signal>::Item: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
<B as Signal>::Item: UnwindSafe,
Blanket Implementations
impl<T> SignalVecExt for T where
T: SignalVec + ?Sized,
[src]
T: SignalVec + ?Sized,
fn map<A, F>(self, callback: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> A,
Self: Sized,
[src]
F: FnMut(Self::Item) -> A,
Self: Sized,
Creates a SignalVec
which uses a closure to transform the values. Read more
fn map_signal<A, F>(self, callback: F) -> MapSignal<Self, A, F> where
A: Signal,
F: FnMut(Self::Item) -> A,
Self: Sized,
[src]
A: Signal,
F: FnMut(Self::Item) -> A,
Self: Sized,
fn filter<F>(self, callback: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> bool,
Self: Sized,
[src]
F: FnMut(&Self::Item) -> bool,
Self: Sized,
Creates a SignalVec
which uses a closure to determine if a value should be included or not. Read more
fn filter_signal_cloned<A, F>(
self,
callback: F
) -> FilterSignalCloned<Self, A, F> where
A: Signal<Item = bool>,
F: FnMut(&Self::Item) -> A,
Self: Sized,
[src]
self,
callback: F
) -> FilterSignalCloned<Self, A, F> where
A: Signal<Item = bool>,
F: FnMut(&Self::Item) -> A,
Self: Sized,
fn sum(self) -> SumSignal<Self> where
Self::Item: for<'a> Sum<&'a Self::Item>,
Self: Sized,
[src]
Self::Item: for<'a> Sum<&'a Self::Item>,
Self: Sized,
fn sort_by_cloned<F>(self, compare: F) -> SortByCloned<Self, F> where
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
Self: Sized,
[src]
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
Self: Sized,
Creates a SignalVec
which uses a closure to sort the values. Read more
fn to_stream(self) -> SignalVecStream<Self> where
Self: Sized,
[src]
Self: Sized,
ⓘImportant traits for ForEach<A, B, C>fn for_each<U, F>(self, callback: F) -> ForEach<Self, U, F> where
U: Future<Output = ()>,
F: FnMut(VecDiff<Self::Item>) -> U,
Self: Sized,
[src]
ⓘImportant traits for ForEach<A, B, C>
U: Future<Output = ()>,
F: FnMut(VecDiff<Self::Item>) -> U,
Self: Sized,
fn len(self) -> Len<Self> where
Self: Sized,
[src]
Self: Sized,
fn enumerate(self) -> Enumerate<Self> where
Self: Sized,
[src]
Self: Sized,
fn delay_remove<A, F>(self, f: F) -> DelayRemove<Self, A, F> where
A: Future<Output = ()>,
F: FnMut(&Self::Item) -> A,
Self: Sized,
[src]
A: Future<Output = ()>,
F: FnMut(&Self::Item) -> A,
Self: Sized,
fn poll_vec_change_unpin(
&mut self,
cx: &mut Context
) -> Poll<Option<VecDiff<Self::Item>>> where
Self: Unpin + Sized,
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<VecDiff<Self::Item>>> where
Self: Unpin + Sized,
A convenience for calling SignalVec::poll_vec_change
on Unpin
types.
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,