[][src]Struct rxrust::ops::map::MapOp

pub struct MapOp<S, M> { /* fields omitted */ }

Trait Implementations

impl<S, B, M> Multicast for MapOp<S, M> where
    S: Multicast,
    M: RxFn(&S::Item) -> B + Send + Sync + 'static, 
[src]

type Output = MapOp<S::Output, Arc<M>>

impl<S, B, M> Fork for MapOp<S, Arc<M>> where
    S: Fork,
    M: RxFn(&S::Item) -> B + Send + Sync + 'static, 
[src]

type Output = MapOp<S::Output, Arc<M>>

impl<S, B, M> RawSubscribable for MapOp<S, M> where
    M: RxFn(&S::Item) -> B + Send + Sync + 'static,
    S: RawSubscribable
[src]

type Item = B

The type of the elements being emitted.

type Err = S::Err

Auto Trait Implementations

impl<S, M> Unpin for MapOp<S, M> where
    M: Unpin,
    S: Unpin

impl<S, M> Sync for MapOp<S, M> where
    M: Sync,
    S: Sync

impl<S, M> Send for MapOp<S, M> where
    M: Send,
    S: Send

impl<S, M> UnwindSafe for MapOp<S, M> where
    M: UnwindSafe,
    S: UnwindSafe

impl<S, M> RefUnwindSafe for MapOp<S, M> where
    M: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

impl<'a, O> Map<<O as RawSubscribable>::Item> for O where
    O: RawSubscribable
[src]

fn map<B, F>(self, f: F) -> MapOp<Self, RxFnWrapper<F>> where
    Self: Sized,
    F: Fn(&T) -> B, 
[src]

fn map_return_ref<B, F>(self, f: F) -> MapReturnRefOp<Self, RxFnWrapper<F>> where
    Self: Sized,
    F: for<'r> Fn(&'r T) -> &'r B, 
[src]

A version of map extension which return reference, and furthermore,return type and input item has same lifetime. Read more

impl<'a, T, O> Filter<T> for O where
    O: RawSubscribable<Item = T>, 
[src]

fn filter<N>(self, filter: N) -> FilterOp<Self, RxFnWrapper<N>> where
    Self: Sized,
    N: Fn(&T) -> bool
[src]

impl<O> Merge for O where
    O: RawSubscribable
[src]

fn merge<S>(self, o: S) -> MergeOp<Self, S> where
    Self: Sized
[src]

impl<'a, O> Take for O where
    O: RawSubscribable
[src]

fn take(self, count: u32) -> TakeOp<Self> where
    Self: Sized
[src]

impl<'a, O> First for O where
    O: RawSubscribable
[src]

fn first(self) -> TakeOp<Self> where
    Self: Sized + Take
[src]

impl<O> FirstOr for O where
    O: RawSubscribable
[src]

fn first_or(self, default: Self::Item) -> FirstOrOp<TakeOp<Self>, Self::Item> where
    Self: RawSubscribable + Sized
[src]

impl<S> SubscribeOn for S where
    S: RawSubscribable
[src]

fn subscribe_on<SD>(self, scheduler: SD) -> SubscribeOnOP<Self, SD> where
    Self: Sized
[src]

impl<S> ObserveOn for S where
    S: RawSubscribable
[src]

fn observe_on<SD>(self, scheduler: SD) -> ObserveOnOp<Self, SD> where
    Self: Sized
[src]

impl<S> Delay for S where
    S: RawSubscribable
[src]

fn delay(self, dur: Duration) -> DelayOp<Self> where
    Self: Sized
[src]

fn delay_at(self, at: Instant) -> DelayOp<Self> where
    Self: Sized
[src]

impl<S> Subscribable for S where
    S: RawSubscribable
[src]

type Item = <S as RawSubscribable>::Item

type Err = <S as RawSubscribable>::Err

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]