Function dptree::map

source · []
pub fn map<'a, Projection, Input, Output, NewType, Args, Descr>(
    proj: Projection
) -> Handler<'a, Input, Output, Descr> where
    Input: Clone,
    Asyncify<Projection>: Injectable<Input, NewType, Args> + Send + Sync + 'a,
    Input: Insert<NewType> + Send + 'a,
    Output: 'a,
    Descr: HandlerDescription,
    NewType: Send
Expand description

Constructs a handler that passes a value of a new type further.

The result of invoking proj will be added to the container and passed further in a handler chain.

See also: crate::filter_map.