pub struct Map<F> { /* private fields */ }
Expand description
Map
operator.
Trait Implementations§
impl<F: Copy> Copy for Map<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for Map<F>where
F: RefUnwindSafe,
impl<F> Send for Map<F>where
F: Send,
impl<F> Sync for Map<F>where
F: Sync,
impl<F> Unpin for Map<F>where
F: Unpin,
impl<F> UnwindSafe for Map<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<In, P, Out> ContextOperator<In> for P
impl<In, P, Out> ContextOperator<In> for P
source§impl<T, P> ContextOperatorExt<T> for Pwhere
P: ContextOperator<T>,
impl<T, P> ContextOperatorExt<T> for Pwhere
P: ContextOperator<T>,
source§fn boxed(self) -> BoxContextOperator<In, Self::Out>
fn boxed(self) -> BoxContextOperator<In, Self::Out>
Create a boxed
ContextOperator
.source§fn finish(self) -> ContextedOperator<Self>where
Self: Sized,
fn finish(self) -> ContextedOperator<Self>where
Self: Sized,
Build into an operator without the
Value
wrapper.source§fn finish_with_data(self, data: Map) -> ContextedOperator<Self>where
Self: Sized,
fn finish_with_data(self, data: Map) -> ContextedOperator<Self>where
Self: Sized,
Build into an operator without the
Value
wrapper with the given data context.source§fn cache(self, length: usize) -> CacheOperator<Self>where
Self: Sized,
fn cache(self, length: usize) -> CacheOperator<Self>where
Self: Sized,
Add a cache layer with the given
length
. Read moresource§fn insert_env<R, Out>(self, f: impl Fn() -> R) -> InsertOperator<Self, R>
fn insert_env<R, Out>(self, f: impl Fn() -> R) -> InsertOperator<Self, R>
Add a
Insert
layer with the given RefOperator
constructor
(i.e. a function that returns a RefOperator
). Read moresource§fn insert_data<R, Out>(self, f: impl Fn() -> R) -> InsertDataOperator<Self, R>where
R: for<'a> RefOperator<'a, In, Output = Option<Out>>,
Out: Send + Sync + 'static,
Self: Sized,
fn insert_data<R, Out>(self, f: impl Fn() -> R) -> InsertDataOperator<Self, R>where
R: for<'a> RefOperator<'a, In, Output = Option<Out>>,
Out: Send + Sync + 'static,
Self: Sized,
Add a
InsertData
layer with the given RefOperator
constructor.
(i.e. a function that returns a RefOperator
). Read moresource§fn insert<R, Env, Data>(
self,
f: impl Fn() -> R
) -> InsertWithDataOperator<Self, R>
fn insert<R, Env, Data>( self, f: impl Fn() -> R ) -> InsertWithDataOperator<Self, R>
Add a
InsertWithData
layer with the given RefOperator
constructor.
(i.e. a function that returns a RefOperator
). Read moresource§fn inspect<F>(self, f: F) -> InspectOperator<Self, F>
fn inspect<F>(self, f: F) -> InspectOperator<Self, F>
Add an inspect layer with the given closure.
source§fn provide<D>(self, data: D) -> AddDataOperator<D, Self>
fn provide<D>(self, data: D) -> AddDataOperator<D, Self>
Provide data to the context.
source§fn provide_with<D>(
self,
provider: impl Fn() -> Option<D> + Send + Sync + 'static
) -> AddDataOperator<D, Self>
fn provide_with<D>( self, provider: impl Fn() -> Option<D> + Send + Sync + 'static ) -> AddDataOperator<D, Self>
Provide data to the context with the given data provider.
source§fn from_context<D>(self) -> AddDataOperator<D, Self>
fn from_context<D>(self) -> AddDataOperator<D, Self>
Declare that the data of type
D
is in the context.source§impl<I, T> OperatorExt<I> for Twhere
T: Operator<I>,
impl<I, T> OperatorExt<I> for Twhere
T: Operator<I>,
source§fn then<P2>(self, other: P2) -> Then<I, Self, P2>
fn then<P2>(self, other: P2) -> Then<I, Self, P2>
Combine with another operator that uses
Self::Output
as input type. Read moresource§fn facet<P2>(self, other: P2) -> Facet<I, Self, P2>
fn facet<P2>(self, other: P2) -> Facet<I, Self, P2>
Combine with another operator with the same input type. Read more
source§fn map<O, F>(self, f: F) -> Then<I, Self, Map<F>>
fn map<O, F>(self, f: F) -> Then<I, Self, Map<F>>
Map the output after performing the operator.
source§fn boxed<'a>(self) -> BoxOperator<'a, I, Self::Output>
fn boxed<'a>(self) -> BoxOperator<'a, I, Self::Output>
Convert into a
BoxOperator
.source§fn boxed_local<'a>(self) -> LocalBoxOperator<'a, I, Self::Output>where
Self: Sized + 'a,
fn boxed_local<'a>(self) -> LocalBoxOperator<'a, I, Self::Output>where
Self: Sized + 'a,
Convert into a
LocalBoxOperator
.source§fn into_async_operator(self) -> Next<Self>where
Self: Sized,
fn into_async_operator(self) -> Next<Self>where
Self: Sized,
Convert into a [
AsyncOperator
].